Forge on SiteHost
Don’t want to install, maintain and configure your web server? Don’t have enough time or knowledge about system administration? Forge from Laravel might be for you then. Starting at $10 USD a month you can have a nice and easy interface to deploy and maintain your websites.
When Forge is installed on your server it sets up Nginx, PHP 5.6, MySQL, Postgres, Redis and Memcache by default. It also allows you to run/configure your own daemons plus schedule actions directly from the web interface. Hassle free!
There are only few requirements to use Forge. You will need:
- A Linux VPS running Ubuntu 14.04.
- A Github account (Free).
- A Forge account (From $10 USD / month).
Deploying your PHP app to a SiteHost Linux VPS is only a few easy steps away. All you have to do is follow these simple steps:
Create a Linux VPS in the SiteHost Control Panel and connect to it via SSH.
Login to Forge and create an account if necessary. You MUST link your Forge account with Githut to be able to start deploying applications. Forge has partnerships with some cloud providers but they are not required and you can easily use it with SiteHost. To do so just click on skip this step under Server Providers.
You are now being asked to create a server. All you have to do is specify the amount of RAM (1.5GB for example) and the IP address of the server. Hit the Create Server button, a popup will appear asking you to run a command on your server, copy/paste it into the terminal you opened earlier. Now wait until the server provisioning is finished.
You should now be redirected to the Server Page details. Here you can manage and configure your server. If you want to connect to the machine you need to click on the SSH Keys tab (1), copy/paste your public key and give it a name, then press the Add key button. Wait until your key is added and you will be able to connect with the user forge. Root access will have been disabled once the machine is provisioned by forge, but they would have sent you an email with the sudo password for user forge.
On the top menu click on Sites, choose the default one of the server you just provisioned.
You can now either deploy some preconfigured applications such as Wordpress or deploy your own project hosted in a Git Repository by clicking on the latter.
You can either use a Github repo or your own Git repository. In this example we use a public Github repository, the syntax for the Repository is user/repo. Here we are deploying the repository laravel belonging to the username laravel (https://github.com/laravel/laravel). Specify the branch you want to deploy and tick the Installation Options you need. Hit the Install Repository button and wait.
Once deployment is done you will be presented a new page with a couple of options allowing you to re-deploy for example.
Open a browser and type your IP address in the navigation bar!
In case you have any trouble with Forge you can find documentation here: http://forge.besnappy.com/.