Open jaredvacanti opened 5 years ago
@jaredvacanti were you ever able to get this working?
I didn't have a chance to come back to this, lthough I recall the issue was with how Rails bundles an application to serve from a subdirectory. This requires configuration in and of itself, and having Helpy respect that configuration.
I have found both of these issues (https://github.com/helpyio/helpy/pull/565 and https://github.com/helpyio/helpy/issues/563) that appear to have resolved how to serve helpy from a subdirectory.
However, when deploying to production and access at
example.com/support
I am redirected toexample.com/en
and receive a404
error. If I manually navigate toexample.com/support/en
I render the page but get404
s onall-<id>.css
,all-<id>.js
,application-<id>.js
, andlogo-<id>.png
, so it's not respecting theRAILS_RELATIVE_URL
when I precompile the assets. Is there another necessary step to properly serve helpy from a subdirectory?I have included my Dockerfile (using official passenger+nginx image):
Dockerfile
init.sh
webapp.conf
env.conf (necessary to keep environment variables in child processes)
I did not include my
database.yml
, otherwise the example is complete. The application serves but assets aren't served correctly and redirects are relative to the root directory not the subdirectory.Is there another step to serve from a subdirectory that we can get into the documentation? Thanks for any help.