Check out http://shopify.github.com/dashing for more information.
DEPLOYMENT
- Set up ssh keys for user
deployto github.com for the repo - Clone code to
/var/www/apps/galter_dashing - Run
bundle installio the app directory. - Copy
local_env.rbfile with secrets to the app directory - Create apache config:
/etc/httpd/conf.d/dashing.conf
<VirtualHost *:80>
PassengerRuby /usr/local/rvm/wrappers/ruby-2.6.10/ruby
# Always keep one and only one instance in the memory
# so the event scheduler (rufus) is not killed or duplicated
PassengerSpawnMethod direct
PassengerMaxPreloaderIdleTime 0
PassengerMaxInstancesPerApp 1
PassengerMinInstances 1
ServerName ghsldash-staging.fsm.northwestern.edu
DocumentRoot /var/www/apps/galter_dashing/public
<Directory /var/www/apps/galter_dashing/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
sudo service httpd restart