- Python 3.6
- Pipenv
- Facebook Page and App
- HTTPS Server
pip3 install pipenv
pipenv --three
pipenv install
pipenv shell- pygraphviz (For visualizing Finite State Machine)
You can either setup https server or using ngrok as a proxy.
or you can use Homebrew (MAC)
brew cask install ngrokngrok would be used in the following instruction
ngrok http 8000After that, ngrok would generate a https URL.
python3 app.pyOr You can use servo to expose local servers to the internet.
-
Add local project to Heroku project
heroku git:remote -a {HEROKU_APP_NAME}
-
Upload project
git add . git commit -m "Add code" git push -f heroku master -
Set Environment - Line Messaging API Secret Keys
heroku config:set LINE_CHANNEL_SECRET=your_line_channel_secret heroku config:set LINE_CHANNEL_ACCESS_TOKEN=your_line_channel_access_token -
Your Project is now running on Heroku!
url:
{HEROKU_APP_NAME}.herokuapp.com/callbackdebug command:
heroku logs --tail --app {HEROKU_APP_NAME} -
If fail with
pygraphvizinstall errorsrun commands below can solve the problems
heroku buildpacks:set heroku/python heroku buildpacks:add --index 1 heroku-community/apt
The initial state is set to user.









