Getting started with Node.js stacks

What you’ll need

Step 1. Build your stack

Before you can deploy your applications to a server with Cloud 66, you must build a stack of the web applications components your application needs to run. To build your first stack, complete the following steps.

  1. Sign in to Cloud 66.
  2. On the Cloud 66 dashboard, click Get started building a Node stack.

Step 2. Access your Git repository

If you have a private Git repository, complete the following steps to generate the keys needed to access your repository. If you have a public Git repository, skip to Step 3.

  1. In the Accessing Git dialog box, copy the SSH key, select your Git provider from the list, and click the associated Go button.
  2. Add the copied key to your Git provider.
  3. Return to Cloud 66.

Step 3: Define your application properties

Complete the following steps to define the properties Cloud 66 uses to identify your application.

Prerequisites
You must know the URL for your Git repository and the associated Git branch. For instructions on retrieving the Git repo URL and how to format it for this procedure, refer to Access a public Git repository or Access a private Git repository.

  1. In the About your app dialog box, do the following actions:
    • In the Your Git Repo URL box, enter the URL for your Git repository.
    • In the Git branch box, type the branch name. This field defaults to the "master" branch.
    • In the Give your stack a name box, type a name for your application stack.
    • In the Environment list, select the environment to deploy.
  2. Click Analyze. Cloud 66 will analyze your application.

Step 4: Review your app configuration

Cloud 66 analyzes your application and returns the configuration details it detects. Complete the following procedure to verify the application configuration is correct.

  1. In the About your app dialog box, verify the returned information. If it is incorrect, make the necessary changes and click Re-analyze my code.

Step 5: Define deployment properties

Complete the following steps to define the properties that determine how to deploy your application.

Prerequisites
If deploying to a cloud server, you must know the API key for your cloud provider. If deploying to your server, you must have (or generate) a SSH key for the server. For instructions on generating an SSH key, refer to Setting up SSH keys.

  1. In the Where are you deploying to dialog box, select the deployment target to use.
  2. Perform one of the following actions, depending on your deployment configuration:
    • If deploying to a cloud, select the cloud provider, server region and server size.
    • If deploying to a server, enter your username and IP address.
  3. In the Deployment details dialog box, select the database option to use.
  4. Click Deploy.

Step 6: Review the deployment logs

After your application builds successfully, you can view the log generated by the deployment.

What's next?

Your stack is up and running, and you can start customizing by:

Still need help? Contact Us Contact Us