Generate RSA key pair and place public and private keys into config
folder. Make sure to use correct paths to pem keys in the SettingsHelper
module.
cp config/application.example.yml config/application.yml
cp config/database.example.yml config/database.yml
cp config/sidekiq.example.yml config/sidekiq.yml
bundle install
rake db:create db:migrate
redis-server
bundle exec sidekiq -r ./app.rb
- Start ngrok on 4567 port:
ngrok http 4567
- Set ngrok url as
service_url
inapplication.yml
- In
application.yml
sethost: localhost
forredis
andsidekiq
- In
application.yml
set your provider id asprovider_id
- Run project:
rackup config.ru
- Run ngrok listening on 0.0.0.0:4567
ngrok http 0.0.0.0:4567
- Copy ngrok url and paste it as
service_url
inapplication.example.yml
- In
application.example.yml
sethost: redis
forredis
andsidekiq
- In
application.yml
set your provider id asprovider_id
- Build docker services:
docker-compose build
- Run docker:
docker-compose up