Add a server
(Optional) Create a new repository.
From your profile page, click on the repository you want to use. You will land on the "Files" section of the repository.
Repositories are used to gather logical infrastructures together: set of servers, tasks and scripts that work together.
Navigate to the "Nodes" section.
Click on the "Add a node" button. This will open the file editor.
Servers are often refered to as "nodes"; we use this more general term as we plan on adding support for load balancers, firewall and elements of your infrastructure that are not servers.
The editor allows you to write and save the YAML file that will configure your server. For the sake of this example, we will create a simple NGINX server on Digital Ocean:
id: web name: Web server type: server provider: name: digitalocean region: 3 size: 66 services: nginx: '*'
I here assume that I have valid Digital Ocean API keys set in my profile. Moreover, I use the value 3 for
region
and 66 for thesize
, which respectively means the "San Francisco 1" datacenter and the "512M" instance as shown on the Digital Ocean documentation page.Save the file. You will be directly redirected to the "Nodes" section. Your server will appear and display a "syncing" status.
Once the status of your server is set to "synced", click on it. You will see your server's details.
You can copy the IP address of your server. Paste this IP in your browser.
The browser will display the NGINX default message: "It works!".