2
Is it possible to copy an Laravel project to a server without having to install Laravel on that server? Just copy the files or I have to make some additional configuration, besides pointing the DNS to the folder public
?
2
Is it possible to copy an Laravel project to a server without having to install Laravel on that server? Just copy the files or I have to make some additional configuration, besides pointing the DNS to the folder public
?
4
You can simply copy everything and unzip on the target server, you need to watch the permissions of the folders, the folder 'Storage' needs chmod 777. And do the database export obviously.
If you’re taking this project from a repository for example you need git to clone the project, and to download all the dependencies you would need.
If you want to install Git on Linux via a binary installer, you can do so with the package management tool (Packages) available in your distribution. If you’re in Fedora, you can use yum:
$ yum install git-core
Or if you are in a Debian-based distribution, such as Ubuntu, use apt-get:
$ apt-get install git
For installation of Komposer using yum. You go to the /tmp folder.
cd /tmp
Runs the following code to download
curl -sS https://getcomposer.org/installer | php
Next you move it to the /usr/local/bin path/
mv composer.phar /usr/local/bin/composer
Ready, 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 download all existing dependencies. In these
Wow, that’s a lot. Thanks, the copy would be manual even, I had doubts if there would be any problem because in other projects I worked already had everything installed, were only changes, and now as it is a new project I came across this. Anyway, my ambition is to synchronize with GIT in the future. Thanks for the answer
The process is quite variable, not to give you a definitive answer that serves for all, but any doubt comments here that I help you.
Browser other questions tagged php laravel
You are not signed in. Login or sign up in order to post.
What do you mean Install the Laravel? What you have to do is just copy the files and point out the DNS, which hosting you use?
– Thiago Santos
It would be installing the Laravel on the server. I thought you had some limitation regarding internal commands of the framework.
– Isaias Lima