Skip to content

Deployment

Zenril edited this page Mar 18, 2019 · 1 revision

deploy the bot

Prepare release version

Beta Bot

  1. Commit and push all your code.
  2. Merge your code into betabot branch
  3. Push betabot branch.
  4. Move to deploy Step.

Production

  1. Commit / push all your work with appropriate futurama quotes

    1. node bin/api.js - Just gets a Quote
    2. bin/commit - Will ADD and COMMIT with a quote but NOT push.
  2. Find the latest semantic version release number

    git describe --abbrev=0 --tags
    
  3. Increment the semantic version by a minor or patch version

    Create release and push it.

    bin/release <version>
    

    Given a version number MAJOR.MINOR.PATCH, increment the:

    • MAJOR version when you make incompatible API changes,
    • MINOR version when you add functionality in a backwards-compatible manner, and
    • PATCH version when you make backwards-compatible bug fixes.**
  4. Move to deploy Step.

deploy

  1. ssh into server

    ssh root@domain
    
  2. deployment

    • Go into correct app root
      • production :: cd ~/projects/talkbot_production
      • betabot :: cd ~/projects/talkbot_beta
    • run script . deploy start

Clone this wiki locally