https://github.com/sshaw/wfviw
WFVIW!?
https://github.com/sshaw/wfviw
deployment release ruby versioning
Last synced: about 1 year ago
JSON representation
WFVIW!?
- Host: GitHub
- URL: https://github.com/sshaw/wfviw
- Owner: sshaw
- Created: 2014-02-27T06:31:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-23T05:12:29.000Z (about 11 years ago)
- Last Synced: 2025-04-12T23:11:45.307Z (about 1 year ago)
- Topics: deployment, release, ruby, versioning
- Language: Ruby
- Homepage:
- Size: 274 KB
- Stars: 0
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WFVIW!?
_What Fucking Version is Where!?_ Keeps track of what's deployed, and where.
## Running
bundle install
bundle exec ruby wfviw.rb
A `config.ru` file is also included so it can be run via Rack.
### The Database
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`, remove `sqlite3`, and **create the database yourself**.
There are a couple of ways to specify [a DB connection string](http://sequel.jeremyevans.net/rdoc/files/doc/opening_databases_rdoc.html#label-Using+the+Sequel.connect+method).
#### Command Line
bundle exec ruby wfviw.rb # use default DB
bundle exec ruby wfviw.rb 'postgres://sshaw@localhost/wfviw'
#### Environment Variable
Just set the `DATABASE_URL` environment variable.
DATABASE_URL='postgres://sshaw@localhost/wfviw' bundle exec ruby wfviw.rb
## Adding Versions
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`
## Other Ways to Track Deployments
* https://github.com/mydrive/capistrano-deploytags
* https://github.com/forward/capistrano-deploy-tagger