Laravel is a modern PHP-framework. SSH is available on all Bolts, and composer is part of the standard stack.
Time needed: 5 minutes.
Installation of an existing project from Git repo. Navigate to the command of your bolt and follow the following steps:
- Clone your repo
Clone your repo onto the server with the following command:
git clone [email protected]:myname/myproject.gitwhere the
[email protected]part needs to be replaced if you’re cloning from Github or GitLab with the relevant clone URL.
- Navigate to the project folder
With the following commands, you can navigate to the project folder:
- Configure your project
The next step involves setting up
.env, migrate and so on.
- Symlink the public folder
The last step is to symlink the public folder to the projects public folder. You can do so with the following commands:
ln -s myproject/public public
Webroot is now configured to use
~/myproject/public as standard folder, and your Laravel project should be available on the web.
Give us your feedback on this article
Did this help you?
Want to speed up your site, easily?
Set up your site on Servebolt, free of charge for 60 days, and see for yourself how fast it can be on our extremely fast hosting.
A faster site converts better, ranks better on Google, and is better for the climate.