To start your Phoenix app:
- Install dependencies with
mix deps.get
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000
from your browser.
Create new Heroku app and set up config. Prerequisites include:
- Slack integration token from the Slash command configuration process:
- Google custom search engine id
- Google API key from Google Developer's Console
$ heroku create spreedly-docs-slackbot
$ heroku buildpacks:add https://github.com/HashNuke/heroku-buildpack-elixir.git
$ heroku config:set APP_SECRET_KEY_BASE=`openssl rand -hex 32`
$ heroku config:set SLACK_TOKEN=<token from the Slack slash command integration setup>
$ heroku config:set GOOGLE_CSE_ID=<CSE search engine id>
$ heroku config:set GOOGLE_API_KEY=<Google developer API key>
To deploy:
$ git push heroku master