Getting started with Node.js based stacks
Cloud 66 makes it easy to deploy and maintain Node.js apps
- What you'll need
- Step 1: Build your stack
- Step 2: Access your Git repository
- Step 3: Define your application properties
- Step 4: Review your app configuration
- Step 5: Define your deployment properties
- Step 6: Review the deployment logs
- What's next?
What you’ll need
- Cloud 66 account
- Git repository with your application code
- Deployment credentials
- Application specific settings
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.
- Sign in to Cloud 66.
- 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.
- In the Accessing Git dialog box, copy the SSH key, select your Git provider from the list, and click the associated Go button.
- Add the copied key to your Git provider.
- 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.
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.
- 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.
- 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.
- 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.
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.
- In the Where are you deploying to dialog box, select the deployment target to use.
- 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.
- In the Deployment details dialog box, select the database option to use.
- Click Deploy.
Step 6: Review the deployment logs
After your application builds successfully, you can view the log generated by the deployment.
Your stack is up and running, and you can start customizing by: