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

Upgrade build to Shakapacker #985

Merged
merged 11 commits into from
Jan 9, 2024
Merged

Upgrade build to Shakapacker #985

merged 11 commits into from
Jan 9, 2024

Conversation

lauramosher
Copy link
Contributor

This updates our JS dependencies from webpacker to shakapacker, per upgrade guidelines to upgrade webpack versions and configuration. As such, this introduces the required configuration for shakapacker (e.g. bin/shakapacker and Procfile.dev) and removes the old configuration for webpacker.

Furthermore, this updates our Dockerfile to use bin/rake hook to bundle assets and change how we copy built assets into the public/ folder for production* consumption.

- https on production
- http on dev/offline/test
This changes the context of build from root/Rails to root. This requires
specifying a -f path/to/Dockerfile when building manually:

docker build -t terrastories-build -f rails/Dockerfile .

or specifying the `file` argument in the builder action.
@lauramosher lauramosher added the dependencies Pull requests that update a dependency file label Dec 27, 2023
@lauramosher lauramosher merged commit 9dbf454 into master Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants