at main 471 B view raw
1#!/bin/bash 2# 3# this is how i start my blog. too lazy for a fuck ass systemd service 4 5started=$(ps -ef | grep puma | grep -v grep | grep -v cluster | grep blog | awk '{print $2}') 6if [ "$started" != "" ]; then 7 echo "stopping old" 8 kill $started 9 sleep 2 10fi 11 12export port=3002 13export RAILS_ENV=production 14export BASE_URL="https://bubblegum.girlonthemoon.xyz" 15 16echo "starting new" 17 18nohup bundle exec rackup config.ru -p 3003 -o 192.168.1.219 > log/production.log 2>&1 &