Skip to content

Commit 2600e52

Browse files
committed
Add production scripts
1 parent f130dbc commit 2600e52

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

spec/dummy/bin/prod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
# Run only after ./prod-assets
4+
NODE_ENV=production RAILS_ENV=production bundle exec rails s -p 3001

spec/dummy/bin/prod-assets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
export NODE_ENV=production
4+
export RAILS_ENV=production
5+
if [ "$CI" = "true" ]; then
6+
bundle exec bootsnap precompile --gemfile app/ lib/ config/
7+
fi
8+
bundle exec rails assets:precompile

0 commit comments

Comments
 (0)