byCoder
byCoder

Reputation: 9184

Passenger start rails app after server reboot

How to tell passenger, that it must start after reboot, and start rails app... Now i do this manually:

passenger start

But how, and what to configure in ngnix + passenger, that my app start automatically after server is rebooted?

Upvotes: 2

Views: 1717

Answers (2)

Nsikan Sylvester
Nsikan Sylvester

Reputation: 618

its late. but could be useful to someone else. Add the command to cron.

crontab -e
@reboot /bin/bash -l -c 'cd /path/to/app && passenger start'

Upvotes: 3

CDub
CDub

Reputation: 13354

Assuming you're using Ubuntu, or a similar Linux distro, you'll want an init.d script to start passenger at boot. See: Starting Standalone Passenger on startup

Upvotes: 0

Related Questions