Skip to content

Commit

Permalink
troubleshoot Render
Browse files Browse the repository at this point in the history
  • Loading branch information
loren-michael committed Jan 12, 2023
1 parent 9b6d3ef commit fa78c48
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions bin/render-build.sh
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.

0 comments on commit fa78c48

Please sign in to comment.