我正在 Laravel 中开发 VueJs 应用程序。在我的本地环境中,我必须使用 php artisan serve
命令来服务我的项目。在服务器中我使用 php artisan serve --host 0.0.0.0 --port 8000
命令来运行我的项目。我已经配置了 apache Web 服务器。
这里我的问题是如何在不使用php artisan serve
的情况下在服务器上运行该项目命令?。提前致谢。
最佳答案
Local Development Server
<小时/>If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the
serve
Artisan command.
Deployment
当您准备好部署 Laravel 应用程序时,您应该使用专用的网络服务器,例如 Apache 或 Nginx。
关于javascript - Laravel 与 Vuejs 在没有 php artisan 服务的情况下运行项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59951901/