This article describes how to migrate an existing Laravel site to your A2 Hosting account. You may need to do this, for example, if you developed a Laravel site on another computer, or want to migrate an existing Laravel site from another hosting provider to A2 Hosting.
To migrate a Laravel site to your hosting account, follow these steps:
echo 'alias artisan="php /home/username/project/artisan"' >> ~/.bashrc source ~/.bashrc
cp -r ~/project/public/* ~/public_html
cp -r ~/project/public/* ~/public_html/laravelIn this case, the Laravel site would be accessible at http://www.example.com/laravel, where example.com represents your domain name.
require __DIR__.'/../vendor/autoload.php';Modify the path to include the directory where Laravel is installed. For example, if Laravel is in the project directory, you would change the line as follows:
require __DIR__.'/../bootstrap/app.php';Modify the path to include the directory where Laravel is installed. For example, if Laravel is in the project directory, you would change the line as follows:
For more information about Laravel, please visit https://laravel.com.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.