Deploy Node.js Project > via GIT/SVN

 

Deploy Node.js Project via GIT/SVN

With GPUonCLOUD you can host any public or your private Node.js project at the GPUonCLOUD Cloud using GIT/SVN.

To deploy project from the remote repository, follow the instruction below:

1. Select Deploy from Git/SVN Option for the running environment as shown below -

    

Click the Deployment Manager and click Add Repo under GIT/SVN Section for the application server in your environment.

 

2. In the Add Project dialog box choose the appropriate tab with your version control system (Git or SVN) and fill in all required fields:

  • for Git

    • URL to your project (httphttpsgit or ftp link)

    • Branch of your project

  • for SVN

    • URL to your project (httphttps or svn link)

    • Login and Password of your repository (if this is required)

You can deploy just one Node.js project to your environment, so the Path for your application (i.e. context) will be ROOT by default and can’t be changed.

    

In case the Git repository you would like to access is private, put a tick to the Use authentication checkbox. You’ll see an additional section expanded, where you can enter your authentication data.

Firstly, choose the Access type you are going to use for connecting to your remote repository (Password or SSH key). Depending on the chosen option, fill in the following fields:

  • enter your Git account credentials (Login and Password) for the Password access type

  • type your Git account Login and choose the appropriate private SSH key from the Select key drop-down list for the SSH key access type.

    Also, you can configure some additional options:
  • Ticking the Check and auto-deploy updates checkbox will enable an automatic periodic re-deployment of your project from the repository, which is only performed if the repository contains new code changes. Use the Check every (min) option to define the required frequency of your project’s updates.

  • The Checkout now option (ticked by default) is used to indicate whether you’d like to deploy your project just after its addition or to do this later. If this option is disabled, your repository’s configurations will be saved for a further deployment, which can be initiated by the auto-deploy feature (if it is enabled) or by selecting the Update from GIT button next to the added project.

  • The active by default Auto resolve conflict option represents an analogue of the git reset --hardcommand. It is used to prevent the occurrence of merge conflicts while a further project updates, which can take place if the same file was modified in both remote repository and your project, hosted at GPUonCLOUD Cloud. If such an issue arises, this contradictory file will be updated according to its repository version (which is considered as the correct one), discarding the locally made changes.

Note: Please DO NOT disable this option if you don’t know exactly what you are doing.

Finally, click Add at the bottom of the frame.

3. That's all! After the deployment process is finished, click the Open in browser button next to the environment in order to display your app in a new browser tab.

  •  

 

  • Deploy Node.js Project via GIT/SVN
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Deploy Node.js Project > via Archive / URL

  Upload and Deploy Your Node.js Application With GPUonCLOUD you can easily upload and deploy...

Process Managers For Node.JS

Choosing a Process Manager for NodeJS Node.js process manager is a tool, which provides an...

MongoDB > Node.js Connection

Node.js Application Connection to MongoDB MongoDB is a popular NoSQL databases, which is...

MySql > Node.js Connection

Node.js Application Connection to MySQL MySQL is one of the most popular open source SQL...

Package Manager for NodeJS

Choosing a Package Manager for NodeJS Application Server Each created Node.js application...