Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Better Sub-URI handling & configurable config-local.yml path #851

Conversation

leshik
Copy link
Contributor

@leshik leshik commented Apr 30, 2016

Hi,

Would you mind to add these changes? Both are falling back gracefully and therefore shouldn't break anything.

First change improves Sub-URI compatibility with non-passenger setups: you just set RAILS_RELATIVE_URL_ROOT environment variable to something like /portus and app server starts to serve Portus from subdirectory.

Second change adds ability to set custom path to config-local.yml file by setting PORTUS_LOCAL_CONFIG_PATH environment variable. This is helpful when setting up on Kubernetes where it's not possible to mount just single file to container, but directory.

@flavio
Copy link
Member

flavio commented May 2, 2016

LGTM, nice idea the PORTUS_LOCAL_CONFIG_PATH

@mssola
Copy link
Collaborator

mssola commented May 2, 2016

LGTM, thanks for this 👍

That being said, rubocop is complaining about the code style. Could you fix that ?

@mssola
Copy link
Collaborator

mssola commented May 2, 2016

This fix should be backported into the v2.0 branch.

@flavio
Copy link
Member

flavio commented May 2, 2016

@mssola please cherry-pick this commit into the v2 branch

Signed-off-by: Alexey Zagarin <zagarin@gmail.com>
@leshik leshik force-pushed the better_sub-uri_handling_and_configurable_config_local_path branch from f21864d to b73cd26 Compare May 2, 2016 14:08
@leshik
Copy link
Contributor Author

leshik commented May 2, 2016

@mssola Sorry about that, I fixed it.

@mssola mssola merged commit d869e2b into SUSE:master May 2, 2016
@mssola
Copy link
Collaborator

mssola commented May 2, 2016

@leshik thanks 👏

@mssola
Copy link
Collaborator

mssola commented May 2, 2016

Cherry-picked into the v2.0 branch. See this and this commits.

mssola added a commit to mssola/Portus that referenced this pull request Jan 20, 2017
…fig-local

See SUSE#851

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants