pay ticket by BitCoin
- install node modules
>npm install
- config db
modify database.json
- create db
>mysql -uroot -p
>create database pay_production
- create tables
>db-migrate up -e production
- config mail server && domain
>cp config/config.js.sample config/config.js
modify config.js
- import address && import code
first config address_path and code_path in config.js
>./import_address
>./import_code
- start Server
>forever start index
if forever not command not find
>cd App.root/node_modules/forever && npm link
now you can visit: http://localhost:3000
- config crontab
* * * * * /path/to/check_pay # every 10minutes execute 1 time
* 1 * * * /path/to/export_csv # every day 1:00AM execute
- if timezone not +0800, set timezone
vi ~/.bash_profile
TZ='Asia/Shanghai'; export TZ
source ~/.bash_profile
That's ALL, Enjoy it!