seek simple rails 4 ubuntu ec2 reboot script

17 views
Skip to first unread message

Raymond Peterson

unread,
Sep 10, 2015, 5:19:52 PM9/10/15
to thin-ruby
Hello,

Can't get reboot script to load thin or Rails on EC2 Ubuntu instance. Thin, Rails, SSL load as desired in various configurations (local/external, port, environment, plain/SSL) when invoked from command line in Rails directory.

sudo /usr/sbin/update-rc.d -f thin defaults

added thin to start/stop. But shows: warning default stop runlevel arguments (0 1 6) do not match thin (S 0 1 6)

added app.yml to /etc/thin:

chdir: /home/myusername/myappname
address: 0.0.0.0
port: 443
daemonize: true

+ other couple other options that seem identical to defaults. No SSL options yet. Just want to get app to start.

reboot. No app connection. sudo thin stop produces ruby error (taken to mean thin not running taken to mean thin not launched on reboot).

Any ideas, incantations, missed steps, etc.? Thanks in advance.

Raymond
Reply all
Reply to author
Forward
0 new messages