Project copy without Laravel Framework installation

2

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?

    
asked by anonymous 09.02.2017 / 14:28

1 answer

4

If you are manually copying the project

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 copying a project from a repository

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.

Installing Git

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

Installing the composer

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.

Installing project

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

    
09.02.2017 / 14:45