forked from OpenNeo/impress
Emi Dunn-Rankin
421f11143d
Oh yeah right, let's `yarn install` and build as part of the `post-create.sh` script! I didn't have a command to do a one-time dev build of the assets yet (just one-time prod, or dev with reloading), so I added `yarn build:dev`!
19 lines
610 B
Bash
Executable file
19 lines
610 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e # Quit if any part of this script fails.
|
|
|
|
# Mark all git repositories as safe to execute, including cached gems.
|
|
# NOTE: This would be dangerous to run on a normal multi-user machine,
|
|
# but for a dev container that only we use, it should be fine!
|
|
git config --global safe.directory '*'
|
|
|
|
# Install the app's Ruby gem dependencies.
|
|
bundle install
|
|
|
|
# Set up the databases: create the schema, and load in some default data.
|
|
bin/rails db:schema:load db:seed
|
|
|
|
# Install the app's JS dependencies.
|
|
yarn install
|
|
|
|
# Run a first-time build of the app's JS, in development mode.
|
|
yarn build:dev
|