[-]
[+]
|
Changed |
Snorby.changes
|
|
[-]
[+]
|
Changed |
Snorby.spec
^
|
|
[-]
[+]
|
Changed |
README.SuSE
^
|
@@ -2,11 +2,10 @@
- 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
+# RAILS_ENV=production bundle exec rake snorby:setup
- command for testing
rails server -e production
@@ -24,4 +23,11 @@
Update steps for production setup:
- commands & configuration
-# rake snorby:update
+# RAILS_ENV=production bundle exec rake snorby:update
+
+- (hard|soft) reset configuration
+# RAILS_ENV=production bundle exec rake snorby:soft_reset
+
+Drop the database and recreate the schema. This will destroy events, users, etc.
+Everything that's stored in the database.
+# RAILS_ENV=production bundle exec rake snorby:hard_reset
|
[-]
[+]
|
Added |
README.passenger-example
^
|
@@ -0,0 +1,33 @@
+cd /srv/www/Snorby
+
+# for apache2 module
+RAILS_ENV=production bundle exec passenger-install-apache2-module
+
+# for nginx
+RAILS_ENV=production bundle exec passenger-install-nginx-module
+
+
+
+# configuration for apache2
+# /etc/apache2/conf.d/passenger.conf
+ LoadModule passenger_module /srv/www/Snorby/vendor/cache/ruby/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
+ PassengerRoot /srv/www/Snorby/vendor/cache/ruby/1.9.1/gems/passenger-3.0.19
+ PassengerRuby /usr/bin/ruby1.9
+ PassengerDefaultUser wwwrun
+
+# /etc/apache2/vhosts.d/snorby.conf
+ <VirtualHost *:80>
+ ServerName www.yourhost.com
+ # !!! Be sure to point DocumentRoot to 'public'!
+ DocumentRoot /srv/www/Snorby/public
+ PassengerMinInstances 2
+ PassengerPreStart http://www.yourhost.com:80
+ <Directory /srv/www/Snorby/public>
+ RailsEnv production
+ # This relaxes Apache security settings.
+ AllowOverride all
+ # MultiViews must be turned off.
+ Options -MultiViews
+ Allow from all
+ </Directory>
+ </VirtualHost>
|