当前位置:网站首页>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 .
边栏推荐
- Digital management insight into retail and e-commerce operations -- Introduction to digital management
- And is two numbers of S - two questions per day
- 2022年湖南工学院ACM集训第五次周测AD题题解
- YOLO系列损失函数详解
- 华为交换机拆解,学EMC基本操作
- What is the root cause of EMC's problems?
- DNA修饰金属铑Rh纳米颗粒RhNPS-DNA(DNA修饰贵金属纳米颗粒)
- GD32使用ST的HAL库和GD官方库的一些体会
- [JVM optimization] online JVM tuning practice
- Which of class A and class B is more stringent in EMC?
猜你喜欢

What is the root cause of EMC's problems?

使用FFmpeg来批量生成单图+单音频的一图流视频

ESD静电不用怕,本文告诉你一些解决方法

Learn software testing in two weeks? I was shocked!

EMC rectification ideas

Opencv's practical learning of credit card recognition (4)

Near infrared two region agzs quantum dots wrapped deoxyribonucleic acid dna|dna agzsqds (Qiyue)

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

Cdn.jsdelivr.net is not available, what should I do

DNA cuinseqds near infrared CuInSe quantum dots wrapped deoxyribonucleic acid DNA
随机推荐
Swm32 series tutorial 5-adc application
EMC design strategy - clock
Google and Stanford jointly issued a document: why do we have to use large models?
DNA-CuInSeQDs近红外CuInSe量子点包裹脱氧核糖核酸DNA
DNA cuinseqds near infrared CuInSe quantum dots wrapped deoxyribonucleic acid DNA
DNA modified noble metal nanoparticles | DNA deoxyribonucleic acid modified metal palladium Pd nanoparticles pdnps DNA
MySQL: what is the difference between like and regexp operations?
Use ffmpeg to generate single image + single audio streaming video in batches
How do we run batch mode in MySQL?
DNA modified rhodium RH nanoparticles rhnps DNA (DNA modified noble metal nanoparticles)
RFID辐射测试小结
演讲笔记 适合所有人的实用程序生成 PCG
Retryer of guava
MPLS -- multi protocol label switching technology
xmpp 服务研究(二) prosody 创建账户
[solution] visual full link log tracking - log tracking system
win系统添加打印机
Freezing and thawing of pytoch
Synthesis of dna-ag2sqds DNA modified silver sulfide Ag2S quantum dots
非关系型数据库之Redis【redis集群详细搭建】