Git Product home page Git Product logo

emaily's Introduction

Emaily

Deployment

This app is using Heroku for deployment. The Heroku CLI is required.

Initial Configuration

  1. Create a Heroku account
  2. Download the Heroku CLI
  3. Login to the Heroku CLI by using heroku login
  4. (DO NOT DO THIS AGAIN UNLESS NEW PROJECT) Create a new heroku app by running heroku create. Use the 2nd link and add it as a remote origin (below one is the one ).
  5. Add remote heroku through git remote add heroku {the 2nd link}. The one for my app is https://git.heroku.com/obscure-gorge-31285.git.

Dynamic Port Binding

The dynamic port is provided by Heroku via an enviromnent variable. For basic development work, the port is 5000.

Specify Node Environment

We must tell Heroku what versions of Node and NPM to use. This is specified in the package.json file like so:

"engines": {
  "node": "8.8.1",
  "npm": "5.0.3"
}

Specify Start Script

We need to instruct Heroku how to start up our server. This is specified in the package.json file like so:

"scripts": {
  "start": "node index.js"
}

Deploying

To deploy, simply run git push heroku master. To test the deployment, run heroku open. heroku logs will print out the logs in case of any errors.

emaily's People

Contributors

dfreds avatar

Watchers

 avatar  avatar  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.