From 6c376587ff55321528b5650e42079bcf1e003350 Mon Sep 17 00:00:00 2001 From: Sushil Subedi Date: Thu, 16 May 2024 13:23:27 +0545 Subject: [PATCH] added script for start --- script/start | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 script/start diff --git a/script/start b/script/start new file mode 100644 index 0000000..c356c05 --- /dev/null +++ b/script/start @@ -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 \ No newline at end of file