Skip to content
/ Webhook Public

Deploy website by Webhook and connect chatbot tutorial

Notifications You must be signed in to change notification settings

h30306/Webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 

Repository files navigation

Webhook

Deploy website by Webhook methods and connect chatbot tutorial

Flask or HTML?

If your project is based on Flask, you should create a virtual environment and freeze the package for requirements.txt, runtime.txt and create Procfile

Create requirement.txt:

$ pip3 freeze > requirements.txt
$ vi requirements.txt

add a row:

gunicorn==19.3.0


Create Procfile:

$ vi Procfile

write these in Profile:

web: gunicorn wsgi:<Flask App Name, default is app> --preload


Create runtime.txt:

python-3.6

Deploy by Ngrok

If you want to deploy by Ngrok, you can follow these steps!

  1. Signup in Ngrok
  2. Download Ngrok in dashboard and unzip it
  3. Copy authtoken to connect your account
$ ./ngrok authtoken xxxxx
  1. Start up your website in local end
  2. Copy the port of website
$ ngrok http xxxx(port)
  1. Copy the link to connection website by external

Heroku

If you want to deploy on heroku, you can follow these steps!

  1. Signup in Heroku
  2. Install Heroku CLI
  3. Build new project
  4. Go to terminal execute and login your account
$ heroku login
  1. Clone the project
$ heroku git:clone -a <project name>
  1. push into heroku
$ cd <project name>
$ git add .
$ git commit -m "description"
$ git push heroku master
  1. Monitor the status of Heroku
heroku logs --tail
  1. Open your Heroku website project
heroku open
  1. Monitor the error of Flask
heroku run python app.py –preload
heroku run python app.py runserver

About

Deploy website by Webhook and connect chatbot tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published