简体   繁体   English

如何将项目部署到服务器?

[英]How to deploy the project to the server?

I did a test project on Laravel voyager.我在 Laravel voyager 上做了一个测试项目。 I want to publish it to the server.我想将其发布到服务器。

I try this:我试试这个:

git init混帐初始化

  1. git remote add origin *** git远程添加原点***
  2. git checkout master git 结帐大师
  3. git pull
  4. add .env添加 .env
  5. add .htaccess添加.htaccess
  6. php artisan migrate --force php 工匠迁移 --force

In ProviderRepository.php line 208: Class 'TCG\\Voyager\\VoyagerServiceProvider' not found在 ProviderRepository.php 第 208 行:找不到类 'TCG\\Voyager\\VoyagerServiceProvider'

How to do it?怎么做?

Update:更新:

php artisan composer install run – Kamlesh Paul php artisan composer install run – Kamlesh Paul

In ProviderRepository.php line 208: Class 'TCG\\Voyager\\VoyagerServiceProvider' not found在 ProviderRepository.php 第 208 行:找不到类 'TCG\\Voyager\\VoyagerServiceProvider'

typically there are few configuration steps to take with laravel projects.通常,laravel 项目需要执行的配置步骤很少。 checkout this post for details - https://devmarketer.io/learn/setup-laravel-project-cloned-github-com/查看这篇文章了解详情 - https://devmarketer.io/learn/setup-laravel-project-cloned-github-com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM