From 771ccd206760881bd492b95688ffb364ef96e64e Mon Sep 17 00:00:00 2001 From: Xavier MALPARTY Date: Tue, 6 Jun 2023 12:06:36 +0700 Subject: [PATCH] Try bundle install update before start.sh --- Makefile | 2 +- bin/start.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4015127d..8a89c20e 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ test_template: if [ $(VARIANT) = web ]; then \ bundle exec rspec --pattern="${base_spec}, ${web_spec}, ${base_addon_spec}, ${web_addon_spec}" --format progress; \ elif [ $(VARIANT) = api ]; then \ - bundle exec rspec --pattern="${base_spec}, ${api_spec}, ${base_addon_spec}, ${api_addon_spec}" --format progress; \ + bundle exec rspec --pattern="${base_spec}, ${api_spec}, ${base_addon_spec}, ${api_addon_spec}"; \ fi; cleanup: diff --git a/bin/start.sh b/bin/start.sh index 941c7423..9b28fbf4 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -7,6 +7,9 @@ if [ -f tmp/pids/server.pid ]; then rm -f tmp/pids/server.pid fi +bundle install +bundle update + # Run pending migrations (if any) and start rails bundle exec rails db:migrate bundle exec rails s -p $PORT -b 0.0.0.0