I directly copy the project on which the online server is developed based on laravel to the local server and plan to create a test environment on the local server (do not ask why ), then I run it in the local wamp integrated development environment and open the directory like this. Then run the command line phpartisanserve...
I directly copy the project on which the online server is developed based on laravel to the local server and plan to create a test environment on the local server (do not ask why ), then I run it in the local wamp integrated development environment and open the directory like this.
Then run the command line php artisan serve to report the same error.
I know this method is incorrect, but I cannot find relevant information on the Internet. So here, I would like to ask how to copy the file from the server to a local configuration to form a test environment? Thank you ~
Reply content:
I directly copy the project on which the online server is developed based on laravel to the local server and plan to create a test environment on the local server (do not ask why ), then I run it in the local wamp integrated development environment and open the directory like this.
Then run the command line php artisan serve to report the same error.
I know this method is incorrect, but I cannot find relevant information on the Internet. So here, I would like to ask how to copy the file from the server to a local configuration to form a test environment? Thank you ~
The directories to be executed by laravel, such as Web/public, also need to be added and public
Laravel's entry file is not in the root directory and is in public.
Access is http://www.example.com/public/index.php
If the source code obtained from git needs to install composer and then composer install