Giter Site home page Giter Site logo

example-nodejs-express's Introduction

Node.js Quick Start Guide

This guide will walk you through deploying a Node.js application on Deis Workflow.

Usage

$ git clone https://github.com/deis/example-nodejs-express.git
$ cd example-nodejs-express
$ deis create
Creating Application... done, created bamboo-espresso
Git remote deis added
remote available at ssh://[email protected]:2222/bamboo-espresso.git
$ git push deis master
Counting objects: 188, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (92/92), done.
Writing objects: 100% (188/188), 33.51 KiB | 0 bytes/s, done.
Total 188 (delta 103), reused 167 (delta 93)
Starting build... but first, coffee!
-----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true

-----> Installing binaries
       engines.node (package.json):  4.5.x
       engines.npm (package.json):   unspecified (use default)

       Resolving node version 4.5.x via semver.io...
       Downloading and installing node 4.5.0...
       Using default npm version: 2.15.9

-----> Restoring cache
       Skipping cache restore (new runtime signature)

-----> Building dependencies
       Installing node modules (package.json)
       [email protected] node_modules/express
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected]
       ├── [email protected] ([email protected])
       ├── [email protected] ([email protected])
       ├── [email protected] ([email protected], [email protected])
       ├── [email protected] ([email protected], [email protected])
       ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
       ├── [email protected] ([email protected], [email protected])
       └── [email protected] ([email protected], [email protected])

-----> Caching build
       Clearing previous node cache
       Saving 2 cacheDirectories (default):
       - node_modules
       - bower_components (nothing to cache)

-----> Build succeeded!
       └── [email protected]

-----> Discovering process types
       Procfile declares types -> web
       Default process types for Node.js -> web
-----> Compiled slug size is 12M
Build complete.
Launching App...
Done, bamboo-espresso:v2 deployed to Workflow

Use 'deis open' to view this application in your browser

To learn more, use 'deis help' or visit https://deis.com/

To ssh://[email protected]:2222/bamboo-espresso.git
 * [new branch]      master -> master
$ curl http://bamboo-espresso.deis.rocks
Powered by Deis
Release v2 on bamboo-espresso-web-3084677544-b9q78

Additional Resources

example-nodejs-express's People

Contributors

bengrunfeld avatar brennoo avatar joshua-anderson avatar knpwrs avatar mboersma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

example-nodejs-express's Issues

Unable to download node

$git push deis master

-----> Installing binaries
engines.node (package.json): 4.2.x
engines.npm (package.json): unspecified (use default)

   Resolving node version 4.2.x via semver.io...
   Downloading and installing node ...
   Unable to download node ; does it exist?

-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys

   If you're stuck, please submit a ticket so we can help:
   https://help.heroku.com/

   Love,
   Heroku

Permission denied (publickey)

$deis create
Creating Application... done, created humble-kingfish
Git remote deis added
remote available at ssh://[email protected]:2222/humble-kingfish.git
$git push deis master
The authenticity of host '[deis-builder.10.247.79.90.nip.io]:2222 ([10.247.79.90]:2222)' can't be established.
ECDSA key fingerprint is d2:d8:30:08:6f:cb:17:e6:bf:6d:a5:9b:ea:ef:b9:d1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[deis-builder.10.247.79.90.nip.io]:2222,[10.247.79.90]:2222' (ECDSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Update npm to avoid warning

This NodeJS app is a bit old, and there is an npm warning every time it's deployed:

$ git push deis master
Counting objects: 174, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (78/78), done.
Writing objects: 100% (174/174), 29.09 KiB | 0 bytes/s, done.
Total 174 (delta 95), reused 168 (delta 93)
-----> Node.js app detected

       Node engine:         0.10.x
       Npm engine:          1.2.x
       Start mechanism:     Procfile
       node_modules source: package.json
       node_modules cached: false

       NPM_CONFIG_PRODUCTION=true
       NODE_MODULES_CACHE=true

-----> Installing binaries
       Resolving node version 0.10.x via semver.io...
       Downloading and installing node 0.10.38...
       Resolving npm version 1.2.x via semver.io...
       Downloading and installing npm 1.2.8000 (replacing version 1.4.28)...

...

-----> Build successful!
       [email protected] /tmp/build
       └── [email protected]

       WARNING: This version of npm (1.2.8000) has several known issues - consider upgrading to the latest release (2.9.0)
       https://devcenter.heroku.com/articles/nodejs-support
...

The example-nodejs-express app should be updated to use a fresher version of npm. (Or perhaps this is a Deis buildpack version issue?)

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.