Skip to content

mnzaki/stager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stager

A simple application to facilitate staging rails applications.

Instructions

Edit config.yml to taste. You can use a secrets.yml file (which is automatically included) to keep your passwords and tokens.

Make sure that the paths configured in authorized_keys and git_data_path exist and are writable by the user that will run stager.

You will need a redis server on the localhost (FIXME: make this configurable....)

Migrate the database:

rake db:migrate

You can run stager like so:

bundle exec thin -R config.ru -p 9292 start

And sidekiq:

bundle exec sidekiq -r ./app.rb

You can use monit to run (and monitor) the servers instead. Use the files at config/monit-stager.conf and config/monit-sidekiq.conf for inspiration.

Disclaimer: this was hacked together quickly and is fairly buggy.

Rake Tasks

$ rake -T
rake db:migrate  # Migrate the database
rake db:setup    # Drop and recreate the database
rake sync_pids   # syncronize slot app pids

About

A Rails Application Stager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages