This project is operating in hybrid mode, meaning some services are hosted on docker and some are on local machine.
Services on docker: postgres, redis
Services on local machine: rails, sidekiq
Required env
ruby version: 2.7.2
rails version: Rails 7.0.8.4
Start the databse
docker-compose up -d
Set up database
rake db:create
rake db:migrate
Env variable for twilio.
Remember to rename the .env.sample
to .env
and assign the corresponding values from your twilio account.
Start the sidekiq server on local machine and log to log/sidekiq.log
nohup bundle exec sidekiq -e development &>./log/sidekiq.log &
Build tailwind css
rake tailwindcss:build
Start the rails server on local machine
./bin/dev
Monitor the job execution at the route: http://localhost:3000/sidekiq/
Terminate the background job server
# kill the sidekiq server after any config modification
ps aux | grep sidekiq
kill -TERM PID
Total: 11 hours