简体   繁体   English

如何更新实时Laravel Web应用程序的功能?

[英]How to update functionalities of a live Laravel web application?

I have a Laravel application. 我有一个Laravel应用程序。 It's live and have daily users. 它是实时的,并且每天都有用户。 I need to update some features. 我需要更新一些功能。 Not only front end work. 不仅前端工作。 Have to change back end too. 也必须更换后端。 With database. 带数据库。 The problem is our old developer created this site. 问题是我们的老开发人员创建了此站点。 Now he's not here, and also no any documentation or blue print available. 现在他不在这里,也没有任何文档或蓝图。 I downloaded the project. 我下载了项目。 I can change front end even it's live. 即使它是实时的,我也可以更改前端。 Changes affected. 变化受到影响。 Is there any way to change some back end and database when it's live ? 有什么方法可以在后台运行某些后端和数据库吗? Is that a risk ? 有风险吗? Please guys don't give minus points to this question. 请大家不要给这个问题减分。

You should be creating a development environment on your local machine, with it's own database etc. Change that, test it, and once you are happy, upload your file and schema changes. 您应该使用自己的数据库等在本地计算机上创建一个开发环境。对其进行更改,对其进行测试,然后在您满意之后上载文件和架构更改。

For setting up a quick dev environment that closely matches your production server, download VirtualBox and Vagrant. 要设置与您的生产服务器紧密匹配的快速开发环境,请下载VirtualBox和Vagrant。 Then visit http://puphpet.com , which will allow you to generate a server config. 然后访问http://puphpet.com ,它将允许您生成服务器配置。

Unzip the config, cd into the folder, and type vagrant up. 解压缩配置,将cd放入文件夹中,然后键入vagrant up。 Your server is now on 192.168.56.101. 您的服务器现在位于192.168.56.101。

Lastly, edit your OS hosts file to point your.dev.site.com to that ip. 最后,编辑您的OS主机文件,将your.dev.site.com指向该IP。 (the default domain name in puphpet is awesome.dev (puphpet中的默认域名是awesome.dev

You can get inside the VM by typing vagrant ssh if you need to. 如果需要,可以通过键入vagrant ssh进入VM。

Don't edit a production site, especially with live users! 不要编辑生产站点,尤其是对于实时用户!

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

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