The application requires a running MongoDB server.
A MongoDB distribution can be downloaded from the official page.
To set up a single server instance you must create the default database directory:
mkdir -p /data/db
and run a database process:
bin/mongod
Default configuration is created by a generator:
rails generate mongoid:config
Go to /lib/fronted/
npm install bower install grunt server
Generating assets to /public
Go to /lib/fronted/
grunt build --force
bundle install cp application.yml.example application.yml
git remote add heroku git@heroku.com:crm-2000.git git push heroku master
To update worker script, upload modified file:
iron_worker upload lib/iron_worker/test.worker --max-concurrency 1
application.yml:
PROMOSMS_LOGIN: email
PROMOSMS_PASSWORD: password
PROMOSMS_URL: https://panel.promosms.pl
APPLICATION_TOKEN: token # allows sending smsemesssems using API
attributes:
id
name: required
phone: uniq,
email
request:
methods: POST
url : /api/sms_notifications
json :
application_token: ENV['APPLICATION_TOKEN']
sms_notification:
to : phone numbers [comma separated]
message : message