diff --git a/README.md b/README.md index f1e4e642..e90f04f5 100644 --- a/README.md +++ b/README.md @@ -14,40 +14,43 @@ Development To run peer4commit in development mode follow these instructions: * Install [Ruby](https://www.ruby-lang.org/en/downloads/) 1.9+ -* Install the [bundler](http://bundler.io/) gem (you may need root): +* Install the [bundler](http://bundler.io/) gem (you may need root): +``` +gem install bundler +``` - gem install bundler - * Install [git](http://git-scm.com/downloads) -* Clone the repository - - git clone git@github.com:sigmike/peer4commit.git - cd peer4commit +* Clone the repository +``` +git clone git@github.com:sigmike/peer4commit.git +cd peer4commit +``` * Install the sqlite3 development libraries -* Install the gems (without the production gems): - - bundle install --without mysql postgresql +* Install the gems (without the production gems): +``` +bundle install --without mysql postgresql +``` * Create `database.yml`. - - - cp config/database.yml{.sample,} +``` +cp config/database.yml{.sample,} +``` * Create `config.yml` - - - cp config/config.yml{.example,} +``` +cp config/config.yml{.example,} +``` * Edit `config.yml` * Initialize the database - - +``` bundle exec rake db:migrate +``` * Make sure `ppcoind` is running with RPC enabled @@ -60,12 +63,14 @@ To run peer4commit in development mode follow these instructions: To update the project balances run this command: - +``` bundle exec rails runner "BalanceUpdater.work" +``` To retreive commits and send tips on project that do not hold tips: - +``` bundle exec rails runner "BitcoinTipper.work" +``` License =======