当前位置:网站首页>Record the migration process of a project
Record the migration process of a project
2022-07-07 16:25:00 【Bashan queer dialect】
The number of servers applying for Alibaba cloud student accounts has risen to 500 More , Resolutely change to the cool server of Tencent cloud , It's only a year 39, The configuration is much higher than that of Alibaba cloud
No containerization Technology , It's pure manual handling , recorded , If nothing else , We have to change cloud service providers next year
The pagoda panel is used for project deployment and database configuration , Simple to use , Time saving and labor saving , I hate doing some work at the bottom of the stage , Understand
1、 Back up projects and databases
SSH For client tools XSehll
FTP Tools XFtp
Use FTP Download all the deployed projects to the local . Whether it's node project 、vue The project is still django project , Delete dependencies first , Download again , It can save a lot of download time
Use PhpAdmin Export the database to local
2、 Domain name resolution
Re resolve all primary and secondary domain names to the new Tencent ECS address , This is very fast
3、 Tencent cloud server environment configuration
3.1 nginx To configure
Connect to the new Tencent cloud server , First install the pagoda panel , At the same time to install Nginx, In fact, it's better to put MySQL and PHP It's also installed .
Because the latest pagoda panel can help us quickly deploy PHP 、Java and Node project
For example, the front-end project belongs to a pure static project , You can also use "PHP" In the project “ Add site ” Function deployment
although PHP The version there , You can choose pure static , But when submitted , You're going to report a mistake , I can't find “enable-php.conf”
stay /www/server/nginx/conf Find below nginx.conf open , Found that there is such a line of code , But the current directory does not enable-php.conf The file of , therefore , Just one of them is installed php7.4, And then change to , restart nginx All right
include enable-php-74.conf;
analysis : I don't know if it's because I only installed nginx , No installation php It matters , But installed php7.4 , After modifying the configuration , That's fine . Today, I suddenly found one in the above Directory enable-php.conf file , So change the above configuration file to the default value , Sure enough, you can still successfully add the site
Have time to study this enable.php.conf file
3.2 Project upload deployment
This step is relatively simple
Put the front-end project 、node The project and django Upload the project to /www/wwwroot Under the table of contents , The installation that this installation depends on , The modified configuration of the modified configuration , Because I mapped the domain name , Not used IP Address , So the request of the front-end project API The address of the reference interface , There's no need to change .
The only thing that needs attention is django project
You can use the following tools to quickly deploy
After this tool is installed , Every time you need to “ Software store ” Of “ Installed project ” Find and use , Click on “ Set up ” New projects
You need to install python, Then you can select... In the above interface python edition .
python Use the pagoda panel to search and install
After the project is successfully deployed , Don't forget it. In profile , Configure allowed domain names and cross domains
I have set a cross domain setting here to allow all , Later, it will be changed to a specific domain name
in addition ,django Project online collection , For static files , For example, the access of pictures may appear 404
This is because after the project goes online , The configuration of static files in development mode will not work , It is recommended to use nginx Proxy for static files , The specific methods are as follows
open settings.py , Set debug mode to False
stay “ Website ” in , Item found , Click on " Set up "
Click on “ The configuration file ”, stay server Add the following code to
边栏推荐
- Laravel5.1 Routing - routing packets
- 修改配置文件后tidb无法启动
- IP地址和物理地址有什么区别
- Common training data set formats for target tracking
- Dotween -- ease function
- Statistical learning method -- perceptron
- logback.xml配置不同级别日志,设置彩色输出
- Leetcode-231-2的幂
- How can laravel get the public path
- Use moviepy Editor clips videos and intercepts video clips in batches
猜你喜欢
Leetcode-231-2的幂
spark调优(三):持久化减少二次查询
AE learning 01: AE complete project summary
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
"The" "PIP" "entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program."
Sysom case analysis: where is the missing memory| Dragon lizard Technology
深度之眼(六)——矩阵的逆(附:logistic模型一些想法)
Xcode Revoke certificate
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
随机推荐
There are many ways to realize the pause function in JS
[summary of knowledge] summary of notes on using SVN in PHP
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
torch. Numel action
logback.xml配置不同级别日志,设置彩色输出
HAVE FUN | “飞船计划”活动最新进展
Talk about the cloud deployment of local projects created by SAP IRPA studio
You Yuxi, coming!
Application example of infinite list [uigridview]
Asyncio concept and usage
MySQL中, 如何查询某一天, 某一月, 某一年的数据
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
asyncio 概念和用法
TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
Laravel changed the session from file saving to database saving
强化实时数据管理,英方软件助力医保平台安全建设
IP地址和物理地址有什么区别
Continuous creation depends on it!
[excelexport], Excel to Lua, JSON, XML development tool
Rongyun won the 2022 China Xinchuang digital office portal excellence product award!