Files
James Smith 90b8acc719 Add a stable env var for the rails app port
so that foreman doesn't autoincrement it and we can use it in workers
2024-08-02 12:41:43 +01:00

13 lines
203 B
Bash
Executable File

#!/usr/bin/env bash
if ! foreman version &> /dev/null
then
echo "Installing foreman..."
gem install foreman
fi
bin/setup
export PORT=5000
export RAILS_PORT=$PORT
foreman start -f Procfile.dev "$@"