简体   繁体   English

在Ubuntu中设置现有的laravel项目

[英]setting up existing laravel project in Ubuntu

如何使用xampp在Ubuntu 14.04中设置现有的laravel 5项目以及那里的数据库?

Some of things you need to consider for new setup. 对于新设置,您需要考虑一些事项。 If you have setup git repo then 如果您已经设置了git repo

  1. You can just pull from git If not copy/paste all folders except vendor , node_modules . 您可以直接从git中提取。如果不复制/粘贴除vendor node_modules以外的所有文件夹。
  2. Use composer install to make vendor folder 使用composer install制作供应商文件夹
  3. Use npm install to make node_modules folder if you already using 如果您已经在使用npm install来制作node_modules文件夹
  4. Use php artisan migrate to make database structure 使用php artisan migrate来制作数据库结构
  5. Use php artisan db:seed if you set any seeding to fill tables data 如果您设置任何种子填充表数据,请使用php artisan db:seed
  6. Use php artisan key:generate to make security. 使用php artisan key:generate进行安全保护。
  7. Create/Update .env file to make work configuration from environment 创建/更新.env文件以从环境进行工作配置

Now you have to point your domain with root folder of laravel you created here. 现在,您必须将您的域指向您在此处创建的laravel根文件夹。

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

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