11 lines
283 B
Text
Executable file
11 lines
283 B
Text
Executable file
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
RAILS_ENV=production
|
|
PATH="${PATH}:/app/www/bin"
|
|
RAILS_SERVE_STATIC_FILES=false
|
|
|
|
exec \
|
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
|
|
cd /app/www s6-setuidgid abc /usr/bin/bundle exec rails s -p 3000
|