Status monitoring for SOBotics' bots.
Clone the repository first, and change into its directory.
- Set up config
Copyconfig/config.sample.yml
toconfig/config.yml
. Edit the values in the new config file to correct values - you'll need an application registered with the SE API via StackApps to get a key, client ID, and client secret. - Set database config
Copyconfig/database.sample.yml
toconfig/database.yml
. Edit the file to add the correct values for your environment. - Set secret keys (prod deployments only)
Editconfig/secrets.yml
. Either set a secret directly in the file, or ensure that when you boot the server, there's one set in$ENV["SECRET_KEY_BASE"]
.
Editconfig/initializers/devise.rb
. Again, either ensure thatconfig.secret_key
is set, or that you set it from a populated environment variable when the server boots. - Install gems
Runbundle install
. - Set up the database
Runrails db:setup RAILS_ENV=production
. - Precompile assets (prod deployments only)
Runrails assets:precompile RAILS_ENV=production
. You'll also need to ensure you have a public file server enabled - either configure Rails to serve your static assets (setconfig.public_file_server.enabled = true
inconfig/environments/production.rb
), or configure a server in front of your application such as Apache or nginx. - Run the server
Runrails s
with whatever options you choose for your environment.
CC0, or public domain where possible.