简体   繁体   English

如何将Laravel 4.2实时项目导入locallhost

[英]how to import Laravel 4.2 live project into locallhost

i am importing a live Laravel 4.2 Web application and setup it into my localhost for development. 我正在导入一个实时Laravel 4.2 Web应用程序,并将其设置到我的本地主机中进行开发。 in the Laravel 5 we usually find the .env file in the root dictionary but in Laravel 4.2 i couldn't be able to find .env and another component and their dictionaries are also different. 在Laravel 5中,我们通常会在根字典中找到.env文件,但是在Laravel 4.2中,我找不到.env,另一个组件及其字典也不同。 can anybody tell me how to import my laravel 4.2 web app into the local host step by step? 有人可以告诉我如何逐步将laravel 4.2 Web应用程序导入本地主机吗?

All of the configuration files for the Laravel framework are stored in the app/config directory 1 . Laravel框架的所有配置文件都存储在app / config目录1中 You have to set everything directly there or build an own .env.local.php file with default values like this: 您必须直接在此处设置所有内容,或使用以下默认值构建自己的.env.local.php文件:

<?php
//file: /.env.local.php
// return the configuration for the 'local' environment
return array(
    'db_host' => '127.0.0.1',
    'db_name' => 'DB_NAME', // specify database name 
    'db_user' => 'DB_USER', // specify database username 
    'db_pass' => 'DB_PASS', // specify database password
);

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

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