While using Ultim8e Deployer, you can create a standard process to be able to automate deployments process of your Vue based applications and websites.
This article assumes you already have a server in place for your Vue application deployment and your application is ready for deployment on that server.
If you haven’t already purchased Ultim8e Deployer, you’ll need to buy now.
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.
Note: We assume that you are using Apache web service and nodejs is installed on the server. 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.
If you are planning to use auto deployment then enable the option Need to deploy project automatically. Enabling this options it will inform Ultim8e Deployer to automatically deploy to the provided server.
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.
Add the below script to rebuild the node_modules folder.
npm run build
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.