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

Failure to load platform assets if loading through HTTPS #66

Open
ggiraldez opened this issue Nov 1, 2016 · 0 comments
Open

Failure to load platform assets if loading through HTTPS #66

ggiraldez opened this issue Nov 1, 2016 · 0 comments
Labels

Comments

@ggiraldez
Copy link
Member

Many InSTEDD application using the instedd-rails gem will use the base prefix from the environment variable INSTEDD_THEME to load the platform assets. This allows overriding the value in runtime and provide a valid HTTPS URL for using when loading the site through SSL (modern browsers refuse to load HTTP assets if the page is loaded through a secure connection).

Pollit has the theme base URL set in the settings.yml file, but this file is not symlinked by the Capistrano deployment task, effectively not allowing the value to be configured at runtime.

Either:

  • use the instedd-rails gem
  • load the value from the environment variable in the settings.yml file
  • symlink the settings.yml file in the shared directory of the deployed application
@ggiraldez ggiraldez added the bug label Nov 1, 2016
@ggiraldez ggiraldez changed the title Cannot override InSTEDD's theme base prefix in production Failure to load platform assets if loading through HTTPS Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant