June 3, 2016
Deployments are activities involved in making your application accessible for use or testing. Managing deployments with Spacedecode is easy, this is all you’ll need:
- A linux server / VM that is publicly accessible through SSH.
Important! You need to use an SSH user that has root privileges.
Add a new server
To add a new server you first have to select the environment to which you would like to add a server. You can add multimple servers under one environment. The example image below shows a server being added to the Development environment.
When you click on Add Server, you will be asked for the server’s IP address, SSH port, SSH username and SSH password.
Spacedecode allows you to see all the activities in real time while it’s installing a new server. The purpose for this is to keep you informed about the installation status at each stage to allow you to retry the process should errors occur. If you happen to retry the installation after an error had occurred, Spacedecode will retry/continue from the point where the error occurred. And you can always refer to the error log for more details.
Recent log: 2016-06-13 04:17:01 - Login successful 2016-06-13 04:17:01 - OS Detected: Ubuntu 14.04.4 LTS 2016-06-13 04:17:01 - Spacedecode installed? Spacedecode installed? 2016-06-13 04:17:01 - Spacedecode not installed. Installing... Spacedecode not installed. Installing... apparmor is enabled in the kernel and apparmor utils were already installed Ign http://za.archive.ubuntu.com trusty InRelease Get:1 http://za.archive.ubuntu.com trusty-updates InRelease [65,9 kB] Get:2 http://security.ubuntu.com trusty-security InRelease [65,9 kB] Get:3 http://za.archive.ubuntu.com trusty-backports InRelease [65,9 kB] Hit http://za.archive.ubuntu.com trusty Release.gpg Get:4 http://za.archive.ubuntu.com trusty-updates/main Sources [277 kB] ... 2016-06-13 04:17:57 - [ok] Installed [ok] Installed Generating deployment keys... 2016-06-13 04:17:58 - Generating Public Key [ok] Keys saved Deploying project nkosana/logs... Project not found. Pulling from firstname.lastname@example.org:/nkosana/logs Changes pulled successfully Project stopped successfully Project started successfully [ok] Project deployed
Once the deployment is done, the server will have a green indicator like this:
From this point on, Spacedecode will automatically deploy all the changes pushed to the project. You can now go ahead and check out your app at http://the_ip_address. Whatever you get when you run localhost on your browser will be live and accessible through that IP address.
You can do the same for other environments by clicking on the drop down sign and selecting the environment you would like to add servers to. If that goes well then you mays start creating releases and publish to those servers.