[-]
[+]
|
Changed |
Snorby.spec
|
|
[-]
[+]
|
Added |
README.SuSE
^
|
@@ -0,0 +1,27 @@
+Setup steps for productions setup:
+
+- commands & configuration
+# cd /srv/www/Snorby
+# bundle pack
+# bundle install --path=vendor/cache
+# vi config/database.yml
+# vi config/snorby_config.yml
+# rake snorby:setup RAILS_ENV=production
+
+- command for testing
+rails server -e production
+
+now login to http://<your-host>:3000/ with
+user: snorby@snorby.org
+password: snorby
+
+and change this default administrator login to
+something else!
+
+- for production you should use passenger
+see http://www.modrails.com/install.html for details
+
+Update steps for production setup:
+
+- commands & configuration
+# rake snorby:update
|
[-]
[+]
|
Changed |
snorby.init
^
|
@@ -35,7 +35,7 @@
. /etc/rc.status
-DELAYED_BIN=/srv/www/Snorby/script/server
+DELAYED_BIN="rails server"
. /etc/sysconfig/snorby || exit 6
@@ -45,13 +45,13 @@
case "$1" in
start)
echo -n "Starting Snorby webservices "
- startproc -- $DELAYED_BIN run -e ${RAILS_ENV} -b ${BIND_ADDRESS} -p ${BIND_PORT} -d
+ startproc -- $DELAYED_BIN -e ${RAILS_ENV} -b ${BIND_ADDRESS} -p ${BIND_PORT} -d
sleep 2
rc_status -v
;;
stop)
echo -n "Stoping Snorby webservices "
- killproc -TERM ruby $DELAYED_BIN
+ killproc -TERM $DELAYED_BIN
rc_status -v
;;
|