While using Ultim8e Deployer, you can create a standard process to be able to automate deployments process of your Laravel web applications and websites. It can also be your SaaS platform using Laravel framework.
This article assumes you already have a server in place for your Laravel application deployment and your application is ready for deployment on that server. You can find a useful set of guides for how to install it in Laravel’s documentation.
For security reasons, we recommend you to create a separate user for the use of deployments.
sudo adduser ultimate
sudo usermod -a -G apache ultimate
Note: We assume that you are using Apache web service. If you are using any other web service then please change the name of the group accordingly.
Now to connect Ultim8e Deployer with your server, we need to create a server by going to Servers > New Server.
Once you save the see the list of all the servers. From that list click on SSH Key button on the server that you have recently created for this project.
su - ultimate
mkdir ~/.ssh
chmod 700 ~/.ssh
nano ~/.ssh/authorized_keys
Paste Ultim8e Deployer’s public key, then press Ctrl + X, y then Enter to save.
Now set the correct permissions on the authorized_keys file.
chmod 600 ~/.ssh/authorized_keys
Note: We assume that you are using Apache web service. If you are using any other web service then please change the name of the group accordingly.
Create a project by going to Projects > New Project.
Config files are files that you want to upload during deployment process, but dont want to keep it in your repository. This is particularly useful for configuration files that migt contain sensitive data such as .env file in this case.
Go to Projects > Select your Project > Click on Config Tabs and click New Config File.
We need to execute few commands on the server after every deployment.
To do so go to Projects > Select your Project > Click on Scripts Tabs and click New Script File.
Scripts are run from top to bottom, so make sure they’re in the correct sequence.
If you are using multiple scripts then ensure that those are also in the order. You can review the order sequence of the scripts in the Scripts Tab.
Now sit back, relax and look to your logs while deployment is happening.
©2023, Ultim8e.com. All Rights Reserved. Powered by Ingress IT Solutions
GO TOP