Code Monkey home page Code Monkey logo

linebot_heroku's Introduction

Linebot + Heroku Server Deployment

  • targets: Making Linebot deploying on a Heroku server.
  • backends: Django

Create New App on Heroku

Alt text

What is Pipeline

A pipeline is a group of Heroku apps that share the same codebase. Each app in a pipeline represents one of the following stages in a continuous delivery workflow:

  • Development
  • Review
  • Staging
  • Production

Pipelines are extremely useful for managing multiple environments for your app. A common pipeline workflow has the following steps:

  1. A developer creates a pull request to make a change to the codebase.
  2. Heroku automatically creates a review app for the pull request, allowing developers to test the change.
  3. When the change is ready, it’s merged into the codebase’s master branch.
  4. The master branch is automatically deployed to the pipeline’s staging app for further testing.
  5. When the change is ready, a developer promotes the staging app to production, making it available to the app’s end users.

Django Project Settings

  1. Install gunicorn

    pip install gunicorn
  2. Record all the required python dependencies in requirements.txt

    pip freeze > requirements.txt
  3. Create a Procfile for the project

  • NOTICE: utf-8 encoding is necessary for this file.

    echo "web: gunicorn {project_name}.wsgi" >> Procfile
  1. Modify setting.py in the project

    STATIC_ROOT = os.path.join(BASE_DIR, 'static')

Deploy Django Project

  1. Login Heroku

    heroku login
  2. Deploy the project

    git init 
    git add .
    git commit -m "your_message"
    heroku git:remote -a {your_app_name}
    git push heroku main

linebot_heroku's People

Contributors

ycpranchu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.