Skip to content

Commit

Permalink
added script for start
Browse files Browse the repository at this point in the history
  • Loading branch information
SushilSubedi committed May 16, 2024
1 parent 9bdde42 commit 6c37658
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions script/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

bundle check || bundle install

bin/rails db:environment:set RAILS_ENV=production
bundle exec rake db:setup

rm -f tmp/pids/server.pid

bundle exec rails s -b 0.0.0.0 -p 4000

0 comments on commit 6c37658

Please sign in to comment.