You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deploy my application but I'm having a problem where I don't know how to get the index.html file for the compiled application.
The build command doesn't move it to the priv static directory, and if you use the --minify flag Lustre writes the output files to a different location than normal so you can't copy it directly across.
What's the right way to do this?
Thanks,
Louis
The text was updated successfully, but these errors were encountered:
Was wondering the same thing. As a workaround I've added the build artifacts to my .gitignore and added a small shell script (build_gh.sh) that builds the app, copies the index.html to the /priv/static/ folder, and then updates the paths.
gleam run -m lustre/dev build app --minify
cp ./index.html ./priv/static/index.html
sed -i 's/app\.css/app\.min\.css/' ./priv/static/index.html
sed -i 's/app\.mjs/app\.min\.mjs/' ./priv/static/index.html
sed -i 's/\/priv\/static/\./' ./priv/static/index.html
And added that as an extra build step before deploying to gh-pages:
Hello!
I'm trying to deploy my application but I'm having a problem where I don't know how to get the index.html file for the compiled application.
The build command doesn't move it to the priv static directory, and if you use the
--minify
flag Lustre writes the output files to a different location than normal so you can't copy it directly across.What's the right way to do this?
Thanks,
Louis
The text was updated successfully, but these errors were encountered: