Getting started with your Cloud Container server
So you've just provisioned a brand new Cloud Container server and you may be wondering what to do next?
This article will give you a brief introduction to our Cloud Container platform with some simple steps to help you get a basic website up and running.
Step 1: Create your first container
Before you can start hosting anything on your Cloud Container server, you will need to create your very first container.
Head over to the 'Containers' module in our Control Panel and follow the instructions in our Creating a container article to get your first container provisioned.
Step 2: Create a database and database user
Within the 'Containers' module, you will see a section labeled 'Databases'. This section can be used to manage the instance of MySQL that comes standard with every Cloud Container server.
Step 3: Create a SSH/SFTP user
You should see another section labeled 'SSH & SFTP'. This section will allow you to manage the SSH/SFTP users on your Cloud Container server and the containers that they have access to.
At this point, you will most likely want to create a user and assign it access to your container by following the instructions in our Creating a SSH/SFTP user article.
This will become the user account that you will use to log into your Cloud Container server to upload files and execute commands.
Step 4: Log into your server
Now that you've created a SSH user, you will be able to log in and begin setting up your container. For help logging in via SSH, please refer to our How do I log in using SSH? article.
Once you're logged in, you should find a directory named container located in your home directory. All files for each container that your user has access to will appear in here.
Refer to our Where are my files, logs and backups stored? article for details on how these files are organized.
Step 5: Deploy your website
At this point, when accessing your container via a web browser you will be presented with our default landing page:
The last thing to do is to replace this page with your own website. You will find this page within your container's files at the following path: application/public/index.html
There are various ways that you may wish to deploy your website to your container. Listed below are some common examples:
Files can be securely uploaded to your container using a file transfer client that supports SFTP.
Files can be securely copied directly to your container using SCP.
If your website resides within a git repository, you may wish to clone it directly into your container.