-
Notifications
You must be signed in to change notification settings - Fork 1
Development
Welcome to the game4commit wiki!
To run game4commit in development mode follow these instructions:
Install Ruby 1.9+ Install the bundler gem (you may need root):
sudo apt-get install ruby
sudo apt-get install git
sudo apt-get install rubygems
sudo apt-get install ruby1.9.1-dev
sudo apt-get install libmysqld-dev
sudo apt-get install libpq-dev
sudo apt-get install libsqlite3-dev
gem install bundle
gem install rails
gem install cucumber
git clone https://github.com/gamers-coin/game4commit
cd game4commit
Install the gems (without the production gems):
bundle install --without mysql postgresql
Create database.yml.
cp config/database.yml{.sample,}
Create config.yml
cp config/config.yml{.example,}
Edit config.yml
Initialize the database
bundle exec rake db:migrate
Make sure gamerscoind is running with RPC enabled
Run the server
bundle exec rails server
Connect to the server at http://localhost:3000/
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"
Or with single command :
bundle exec rails runner -e production 'BalanceUpdater.work; BitcoinTipper.work; BalanceUpdater.work'