当前位置:网站首页>03 | project deployment: how to quickly deploy a website developed based on the laravel framework
03 | project deployment: how to quickly deploy a website developed based on the laravel framework
2022-07-28 07:55:00 【Programmers are very good】
Hello , I am program ape zero one .
stay Last one in , We installed and configured a basic php development environment . today , I'll teach you how to build on it , Quickly deploy one php Website .
For one web For developers ,php Is a very powerful and popular programming language . There are many top websites in the world based on php Developed . And use a powerful framework , It can make our development work faster 、 Safe and effective .
Choose an appropriate framework before starting development , It can lay a solid foundation for future development . Now let's learn about some excellent php frame .
1,laravel( recommend ), Is a free and open source php Application framework , be based on mvc Of web Design for application . Use laravel The framework can quickly create some cool applications , And you can easily use permission authentication 、URL route 、session And caching . Official web site, :http://www.laravel.com

2,thinkphp, It is developed and maintained by Shanghai Dingxiang company MVC Open source of structure PHP frame , follow Apache2 Open source protocol release , It's for Agility WEB Application development and simplified enterprise application development . Official website :http://www.thinkphp.cn/

3,Yi,i It's a fast 、 Safe and professional PHP frame , At the same time, it is also a development WEB 2.0 High performance applications PHP frame ,Yii It's very powerful , The following functions are built in :MVC、DAO/ActiveRecord、I18N、 Authority verification 、 cache 、 safety control 、 test 、 Data access objects, etc . Official website :http://www.yiiframework.com

4,CodeIgniter Is a very agile open source PHP frame , If you want to use PHP Develop a simple and elegant toolkit , that CodeIgniter It's very suitable . Official website :https://ellislab.com/codeigniter

5,Yaf, Full name Yet Another Framework, It's a C language-written PHP frame , It's an example. PHP Provided in an extended form PHP Development framework , Compared with the general php frame , It's faster. , Lighter . It provides Bootstrap、 route 、 distribution 、 View 、 plug-in unit , It's a full-featured PHP frame .

The frameworks listed above , Are all good projects , It provides a full stack development environment for developers . In addition to the above frameworks , There are many other excellent frameworks , for instance hyperf, for instance easyswoole wait .
Personally, I prefer laravel frame . Therefore, the following is laravel To develop our blog website .
At the beginning of deployment laravel Before , Let's first learn about a tool ,composer.
composer, yes PHP Used to manage dependencies (dependency) Tools for relationships . You can declare the dependent external tool library in your own project (libraries),Composer Will help you install these dependent library files .
download composer
stay windows Lower installation composer be prone to , Download and install Composer-Setup.exe File can . Download address :https://getcomposer.org/Composer-Setup.exe.

install composer
Before installation , Need first php Environment variables added to the system .




After adding php Environment variables of , Double click just downloaded Compose-Setup.exe File to install .






Here we are ,composer The installation is complete . The system will take composer Add to environment variables .

So you can use it anywhere composer The command . have access to cli Command to check . Use windows key +r Open the run command window , Input cmd Open the command line window .


In general ,composer Whether updating or installing, there is a slow problem , This is because foreign sources are used by default . We need to change to the domestic image source .
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
composer clearcache
composer self-update --previewdownload laravel
Now? , We can go through composer To download a laravel Project . Here we choose to download laravel5.8.
composer create-project --prefer-dist laravel/laravel blog "5.8.*"
such laravel The download was successful . Let's modify the previously created blog.lingyi.com My website directory , Point the root directory to laravel root directory /public.

Open the browser address bar again , visit blog.lingyi.com See the effect .

Here we are , One is based on laravel The developed website is deployed successfully .
Next , Let's talk about the login function of a background system , How to realize .
Welcome to your attention
Last , Welcome to my official account . Open the wechat search program ape zero one official account to follow , I hope we can make progress together .
边栏推荐
- 近红外二区AgzS量子点包裹脱氧核糖核酸DNA|DNA-AgzSQDs(齐岳)
- Synthesis of dna-ag2sqds DNA modified silver sulfide Ag2S quantum dots
- win系统添加打印机
- DNA修饰金属铑Rh纳米颗粒RhNPS-DNA(DNA修饰贵金属纳米颗粒)
- MPLS --- 多协议标签交换技术
- Parse tree structure JS
- How to understand the adjective prefix of socket: "connection oriented" and "connectionless"
- leetcode 字符串类
- C语言犄角旮旯的知识之指针
- EMC问题的根源在哪?
猜你喜欢

DNA-Ag2SQDs脱氧核糖核酸DNA修饰硫化银Ag2S量子点的合成方法

Don't be afraid of ESD static electricity. This article tells you some solutions
![[JVM optimization] online JVM tuning practice](/img/e3/5fa128805af0ca03f0b6715b78d398.jpg)
[JVM optimization] online JVM tuning practice

“蔚来杯“2022牛客暑期多校训练营2补题记录(DGHJKL)

DNA脱氧核糖核酸修饰金属铂纳米颗粒PtNPS-DNA|科研试剂

xmpp 服务研究(二) prosody 创建账户

演讲笔记 适合所有人的实用程序生成 PCG

DNA deoxyribonucleic acid modified platinum nanoparticles ptnps DNA | scientific research reagent

node(一)

SWM32系列教程5-ADC应用
随机推荐
[JVM optimization] online JVM tuning practice
.NET 6.0中使用Identity框架实现JWT身份认证与授权
It has been rectified seven times and took half a month. Painful EMC summary
XMPP Service Research (II) prosody create account
Merge two sorted linked lists - two questions per day
ArcGIS JS 地图内外网环境判断问题
0727~ sorting out interview questions
解析树形结构 js
EMC整改思路
protobuf 基本语法总结
辨析覆盖索引/索引覆盖/三星索引
非关系型数据库之Redis【redis集群详细搭建】
4.1.4 why set the member variable to private
Dry goods | share an EMC actual case and rectification process
C language explanation series - array explanation, one-dimensional array, two-dimensional array
The penultimate node in the linked list - Double finger
快速搭建DMHS DM之间双向同步
【google】解决google浏览器不弹出账号密码保存框且无法保存登录信息问题
Swm32 series tutorial 5-adc application
MySQL view the memory size of a table