drie

drie documentation

Welcome to the drie documentation. You'll find comprehensive guides and documentation to help you start working with drie as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Support

Deploy a Node.js Express 4 app on drie

Quickstart on how to run a simple Node.js Express 4 app on the drie platform.

This tutorial assumes that you have installed Node.js and the drie CLI

1. Get the Node.js drie starter app

Download the demo-nodejs-drie-app. It has all the drie-specific files you need to add in order to properly deploy an app on drie (.buildpacks, Procfile)

$ git clone https://github.com/mraym/demo-nodejs-drie-app.git

2. Test that the Node.js app runs locally

$ cd demo-nodejs-drie-app
$ npm install
$ npm start

This should start the app at http://localhost:5000 (or whichever $PORT env variable is set to).

3. Add and Deploy the app on drie

$ drie app add UNIQUE_APP_NAME	# adds the app to drie
$ drie app deploy 							# deploys the app on drie 
$ drie app scale 1							# starts the app scaled to 1 instance

At the moment, you will have to periodically run 'drie app show' on the deploy and scale commands and wait for the status to change from 'deploying' to 'deployed'.

4. Confirm that your app is running on drie

$ drie app show
App demo-nodejs-drie-app
========================
status: deployed
id: 4c983113-8303-4d72-b693-b2b62efadd2d
deployed commit: 265ee43cb87179a7c6d39b6e458ef7e30ec2f47c
build repo: https://github.com/mraym/demo-nodejs-drie-app.git

web address
======
web_UNIQUE_APP_NAME.app.drie.co

processes
======
1 web

config
======
REPO_URI=https://github.com/mraym/demo-nodejs-drie-app.git

After a while, the status of your app will be 'deployed' and the web address will become available: http://web_UNIQUE_APP_NAME.app.drie.co.
Congratulations! Your Node.js app is now deployed on drie!

Deploy a Node.js Express 4 app on drie

Quickstart on how to run a simple Node.js Express 4 app on the drie platform.