Skip to content

Instantly share code, notes, and snippets.

@saydulk saydulk/rc.local.sh
Created Feb 28, 2019

Embed
What would you like to do?
rails app running after linux reboot
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
cd /home/username/bmxmdb5
sudo rails s -b 0.0.0.0 -p 3000
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.