This guide will walk you through deploying a Node.js application on Deis Workflow.
$ 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