Git is a perfect option to deploy apps to EvenNode. To start with git deployment, initialize git repository on your machine with the following commands:
$ cd path-to-your-app $ git init $ git add . $ git commit -m "first commit"
You will need a private and a public key to deploy via git. If you don't have a public/private key, following these guides to create a new key pair:
Add your public key to your EvenNode's profile to gain access to EvenNode's git repository.
Now we need to tell git how to deploy your app to EvenNode.
Open the web console and locate your app's information tab. It shows you a link to your git repository – for example
Copy the link and configure your local git repository:
$ cd path-to-your-app $ git remote add evennode firstname.lastname@example.org:your_app_here
Now you're ready to push your app to EvenNode via
git push command:
$ git push evennode master
After the push is finished, your app is automatically deployed to our servers and restarted.
Every application running on EvenNode has its own git repository. You can use it to push your app into repository through git and automatically deploy the code. Here's what happens with each push to EvenNode:
npm installruns on your code
Open your application through the web console
and locate git section in the Information tab.
Click the "Manage public keys" link, paste your public key into the
"Public key for Git" text box and save.
Make sure that you add exactly one public key per line only. Each public key
usually starts with
Wait until the change propagates to our servers (usually within 1 minute).
The recommended way is to use PuTTYgen.
Conversions -> Export OpenSSH keyand save your private key to
Public key for pastingand add the key to EvenNode (see How do I add my public key?)
ssh-keygen -t rsa -C "email@example.com"