que-web icon indicating copy to clipboard operation
que-web copied to clipboard

Precompile assets

Open hanshenrik opened this issue 8 years ago • 2 comments

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.

hanshenrik avatar Mar 03 '17 14:03 hanshenrik

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

statianzo avatar Mar 03 '17 17:03 statianzo

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

hanshenrik avatar Mar 06 '17 11:03 hanshenrik