Akmal Arzhang
Akmal Arzhang

Reputation: 122

How to move laravel project from windows to Linux?

Can anybody tell me which tips required to move a laravel project from windows to linux? I installed a new project on linux and copied files separately but it says can't open required conroller( Controller Name ) file

Upvotes: 0

Views: 4130

Answers (1)

Pᴇʜ
Pᴇʜ

Reputation: 57743

Make use of the mighty Laravel Homestead and you will never have a problem switching your host development environment from windows to linux to mac or back.

How to migrate to another development environment like laravel homestead:

  • Install your new environment (e.g. laravel homestead)
  • If you have a database (e.g. mysql db): backup your database
  • Copy your whole laravel project directory from windows to your linux/homestead environment setup (if you clone from a git repository make sure that composer.lock is included in your git repo and run composer install after cloning.
  • If you have a database:
    • Migrate your database with artisan migrate if you want a clean and empty database structure.
    • OR: Rebuild it from your backup. Make sure the database user/password specified in your laravel config exists in the new environment and has write access to your rebuild database.

Upvotes: 1

Related Questions