Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for PaaS providers (Orchestra in particular) #277

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

duggan
Copy link
Contributor

@duggan duggan commented Oct 27, 2011

There's a couple of things in this pull request, take what you like (if you like any of it!) These are my alterations for a smooth installation process on http://orchestra.io.

Routing
I've added attempts to use Kohana-esque routing in the event that __route__ is not set. This should mean routing "just works" for generalized PHP web server configurations.

If __route__ is set, nothing changes.

Remove writable FS requirement
This boils down to making it optional whether the configs/generated directory is writable. During the setup process, a user can choose to ignore the warnings about the generated directory not being writable. At the end of the setup, they are presented with instructions and a textarea containing the completed configuration ini for copying and pasting.

If the configs directory is writable, there is no difference in the setup process.

Get around common image caching configs
Changing the default .jpg ending on image requests to .jpe should prevent mishandling of photos which might otherwise be treated as static assets.

This is the only change which will affect all usage scenarios, but it is a fairly minor one, and should be invisible or easily remedied by users if they already have a solution in place.

These changes should help things run more smoothly out of the box on PaaS providers (Orchestra.io in particular) with negligible side-effects.

Here's the application running on Orchestra, for reference: http://openphoto.orchestra.io, configured with S3.

Questions, fire ahead! I'm also fairly new to OpenPhoto, so please excuse me if there's something you find particularly odd here.

@jmathai
Copy link
Member

jmathai commented Oct 27, 2011

Hey, this is awesome. We'll definitely get this merged in. Given that it touches some base parts of the system give me some time to review it a bit more.

@duggan
Copy link
Contributor Author

duggan commented Oct 27, 2011

Sure, thanks for the quick review! If there's other stuff (in addition moving the routing to initialize.php and returning m=welcome) you'd prefer tidied up before merging, let me know. I'll keep an eye on the comments here.

jmathai added a commit that referenced this pull request Jan 6, 2012
Merge branch 'master' of https://github.com/duggan/frontend into duggan

Conflicts:
	src/html/index.php
	src/libraries/controllers/ApiPhotoController.php
	src/libraries/controllers/SetupController.php
	src/libraries/models/Photo.php
	src/libraries/routes.php
	src/templates/setup.php
@jmathai
Copy link
Member

jmathai commented Jan 6, 2012

Apologize for all the commits :\

@matiaskorhonen
Copy link

I guess this is never getting merged (and OpenPhoto isn't getting support for PaaS providers like AppFog or Orchestra)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants