Icontract is the system to maintain corporative contracts and to remind users to do actions according to contracts.
In further, i'll cover next readme totics:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
before all you need to : install tm2 (at least create development database for tm2 with users table) .... install redis server....
-
create database for icontract: git pull mysql -> create users, grant permissions to dev, test, prod rails create database rails migrate rails seed
3.1) start rails passenger server:
- check Passengerfile.json
- check config/local_env.yml rvmsudo passenger start
3.2) start resque worker: RAILS_ENV=production PIDFILE=./resque.pid BACKGROUND=yes QUEUE=* rake resque:work
3.3) start resque-scheduler :
RAILS_ENV=production BACKGROUND=yes rails resque:scheduler
- in the app, login as admin and start minitoring process:
at sessions/index page press
Запустити процесс MorningCheckJob. Увага! Запускати тількі один раз! startMorningCheckJob()
4.1) you can control jobs at path: www.icontract-path/jobs
- when need, clean redis database: redis-cli FLUSHALL or FLUSHDB
6)if need, check active workers: resque list