0

I wonder what's the better practice to run rails server with Puma and nginx on reboot.

because my crontab doesn't work.

I want to learn how to run the server automatically in other ways

PATH=/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/home/userA/bin:/home/userA/.rbenv/shims:/home/userA/.rbenv/bin:/home/userA/.rbenv$
SHELL=/usr/bin/zsh


@reboot zsh -l -c 'cd /project && bundle exec puma config/puma.rb'
user3675188
  • 7,271
  • 11
  • 40
  • 76

0 Answers0