Slack bot to demonstrate slash commands using Ruby-on-Rails.
Create the file config/local_env.yml
.
cat <<EOF>config/local_env.yml
REDIS_URL: "redis://localhost:6379"
SLACK_ROOTBOT_TOKEN: "token from app that was created"
EOF
Create the file .env
.
cat <<EOF>.env
OVERMIND_NO_PORT=1
RACK_ENV=development
PORT=3000
EOF
Launch everything
-
start required services
docker compose up -d
-
start
rails
andsidekiq
overmind start
-
start the
webpack
development servicebin/webpack-dev-server
git push heroku main
heroku ps:scale web=1
heroku ps:scale worker+1
heroku run rake db:migrate