diff --git a/scripts/start-aaec.sh b/scripts/start-aaec.sh deleted file mode 100755 index ebefc293..00000000 --- a/scripts/start-aaec.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# Starts the application if it's not already running -# -# Example usage: script/start-aaec.sh /opt/webapps/aaec /aaec production - -APP_DIR=$1 # Directory where the app is installed -WEB_URI=$2 # The sub-URI on the web server where the app can be accessed -MODE=$3 # production or development - -if ! ( [ -f $APP_DIR/tmp/puma/pid ] && pgrep -F $APP_DIR/tmp/puma/pid > /dev/null ) -then - cd $APP_DIR - export PATH=$APP_DIR/vendor/bundle/ruby/3.2.2/bin:/usr/local/bin:$PATH - export RAILS_ENV=$MODE - export RAILS_RELATIVE_URL_ROOT=$WEB_URI - bin/bundle exec puma -d -fi