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

Precompile assets #24

Open
hanshenrik opened this issue Mar 3, 2017 · 2 comments
Open

Precompile assets #24

hanshenrik opened this issue Mar 3, 2017 · 2 comments

Comments

@hanshenrik
Copy link

Is there a way to precomile the assets used by que-web (jQuery, Font Awesome, etc.), perhaps to a specific path?

I'm having a hard time getting que-web to load its assets from the right place when running my app in Docker at a relative path (not at the root) in a cluster that uses HAProxy to do the routing. That is, at my.cluster.com/my-app. Works fine when running at a relative root locally, and at a relative path in Docker on my machine.

@statianzo
Copy link
Owner

Try setting the SCRIPT_NAME environment variable to your url path, "my-app".

@hanshenrik
Copy link
Author

Didn't work unfortunately. Tried both with SCRIPT_NAME=my-app and SCRIPT_NAME=/my-app.

I'm running the app with Passenger/Nginx, so I made sure to tell Nginx to preserve this environment variable, as specified in https://github.com/phusion/passenger-docker#setting-environment-variables-in-nginx

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

No branches or pull requests

2 participants