/NodeCentOSPSimpleApp

Simple Node.js application to be deployed on CentOS.

Primary LanguageJavaScript

#NodeCentOSPSimpleApp w/ Provisioning This tutorial will walk you through deploying a simple Hello World Node.js Application to any server with Distelli.

Distelli makes it fast and easy for developers to deploy code to any server with the push of a button. Our platform empowers developers and their teams to spend less time building and maintaining complex deployment tools and homegrown scripts so they can focus their valuable time and effort on creating the software that powers their business. Distelli is funded by Andreessen Horowitz.

##Prerequisites: ##

##Deploying Your Node.js Application With Distelli##

  1. Enter the following commands to clone this repository onto your local machine:
git clone https://github.com/Distelli/NodeCentOSSimpleApp.git

You should see the following message on successful clone: Then, use the cd command to enter the directory:

cd NodeCentOSSimpleApp
  1. To create an application with Distelli, enter the following command into your terminal replacing "username" with your Distelli username:
 $ distelli create username/NodeCentOSSimpleApp

You'll be prompted to login, use the email address and password associated with your Distelli account: You should see the following message on successful app creation:

  1. To create an environment with Distelli, login to your Distelli account. Once logged in, you should see the Node application you just created. Select the NodeCentOSSimpleApp:

Select the environments tab:

Create a new environment by selecting "New Environment":

Name the environment "NodeEnvironment" then select the "Create Environment" button:

  1. Now, let's add a server to the environment. Select the "Servers" button on the top right of the page:

Now select the "Add/Remove Servers" button on the top right of the page:

You should see the server you installed the agent on prior to starting this tutorial. Add that server to the environment by selecting the add button:

  1. Open the distelli-manifest.yml file with your favorite text editor. Replace with your Distelli username:

Note: This is not the email you used to sign up for your Distelli account, this is the unique username selected after signup.
  1. Now we're ready to push our first release. Enter the following command into your terminal:
$ distelli push -m "First push with Distelli"

Enter the email and password associated with your Distelli account:

You should see the following message on successful push:

8. Now we're ready to deploy our first release. Navigate back to Distelli.com.

Select your application and then click the green lightning bolt: Congrats, you've just deployed your first application with Distelli!

Questions? Shoot us an email at support@distelli.com.