Is it possible to copy a Laravel project to a server without having to install Laravel on that server? Is it just to copy the files or do I have to do some additional configuration, besides pointing the DNS to the public
folder?
Is it possible to copy a Laravel project to a server without having to install Laravel on that server? Is it just to copy the files or do I have to do some additional configuration, besides pointing the DNS to the public
folder?
You can simply copy everything and unzip to the destination server, you need to look at the permissions of the folders, the 'storage' folder needs chmod 777. And export the database obviously.
If you are taking this project from a repository for example it is necessary that you have git to clone the project, and to download all dependencies would require the composer.
If you want to install Git on Linux via a binary installer, you can do it with the package management tool available in your distribution. If you are in Fedora, you can use yum:
$ yum install git-core
Or if you're in a Debian-based distribution such as Ubuntu, use apt-get:
$ apt-get install git
For composer installation using yum. You go to the / tmp folder.
cd /tmp
Run the following code to download
curl -sS https://getcomposer.org/installer | php
Then you move it to / usr / local / bin /
mv composer.phar /usr/local/bin/composer
That's it, you can already use the composer.
After cloning the project using git, you download the dependencies with the following command in the terminal:
composer update
It will lower all existing existing dependencies. In these ca