Migrating Laravel to Hosting


The information provided in this article is for informational purposes only. Transferring a project created in Laravel to hosting is quite complicated and has certain nuances that only its developer can provide.

To migrate a project to Laravel, you first need to upload the files to the server. This can be done in several ways:

  • In the case of using Git, you can clone the project, connecting to hosting via SSH and running the command:
    git clone http://github.com/example/example_site/
  • Download project files to the server.

After uploading files to the server connect over SSH and do the following:

  1. Customize connection to the database.
  2. Change to the directory with the loaded project by running the command:
    cd ~/example.com/www/
  3. Update dependencies and all packages by running the command:
    composer install
  4. Run the command:
    /usr/local/php70/bin/php artisan migrate
  5. Check the site is working.

After completing the steps described, additional steps may be required to customize the project. In this case, you should contact the project developer to clarify more detailed information.