What Fucking Version is Where!? Keeps track of what's deployed, and where.
bundle install
bundle exec ruby wfviw.rb
A config.ru
file is also included so it can be run via Rack.
By default an SQLite database named deployments.db
will be created in the current directory.
If you're not using SQLite you must add your DB lib to the Gemfile
and remove sqlite3
.
There are a couple of ways to specify a DB connection string.
bundle exec ruby wfviw.rb # use default DB
bundle exec ruby wfviw.rb 'postgres://sshaw@localhost/wfviw'
Just set the DATABASE_URL
environment variable.
DATABASE_URL='postgres://sshaw@localhost/wfviw' bundle exec ruby wfviw.rb
Add something like following to your deployment script/hook/whatever:
curl -d 'environment=production&name=website&version=v0.2.1' http://localhost:4567/deploy
The following parameters are accepted
Required:
environment
name
version
Optional:
hostname
deployed_by