Started inital migration to rails 3.2

This commit is contained in:
2013-01-19 01:14:55 -05:00
parent 64aff15deb
commit a9a4cd892f
98 changed files with 968 additions and 363 deletions

21
forum.service Normal file
View File

@@ -0,0 +1,21 @@
[Unit]
Description=Forum server
After=syslog.target
After=network.target
[Service]
Type=forking
User=forum
Group=forum
SyslogIdentifier=forum-unicorn
ExecStart=/opt/forum/.gem/ruby/1.9.1/bin/unicorn -E production -c /opt/forum/forum/unicorn.ru -D
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
WorkingDirectory=/opt/forum/forum
PIDFile=/tmp/forum.pid
# Give a reasonable amount of time for the server to start up/shut down
#TimeoutSec=300
[Install]
WantedBy=multi-user.target