-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b6d3ef
commit fa78c48
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
# #!/usr/bin/env bash | ||
# # exit on error | ||
# set -o errexit | ||
|
||
# # Build commands for front end to create the production build | ||
# rm -rf public | ||
# npm install --prefix client && npm run build --prefix client | ||
# cp -a client/build/. public/ | ||
|
||
# # Build commands for back end | ||
# bundle install | ||
# bundle exec rake db:migrate | ||
# bundle exec rake db:seed # if you have seed data, run this command for the initial deploy only to avoid duplicate records | ||
|
||
|
||
#!/usr/bin/env bash | ||
# exit on error | ||
set -o errexit | ||
|
||
# Build commands for front end to create the production build | ||
rm -rf public | ||
npm install --prefix client && npm run build --prefix client | ||
cp -a client/build/. public/ | ||
|
||
# Build commands for back end | ||
bundle install | ||
# bundle exec rake assets:precompile # These lines are commented out because we have an API only app | ||
# bundle exec rake assets:clean | ||
bundle exec rake db:migrate | ||
bundle exec rake db:seed # if you have seed data, run this command for the initial deploy only to avoid duplicate records | ||
bundle exec rake db:seed |
File renamed without changes.