当前位置:网站首页>egg. JS project deployment online server
egg. JS project deployment online server
2022-07-06 08:29:00 【Liu Chu, Ge Nian】
First step : Domain name resolution , Create a website 
Mount the pagoda , Initializing some software 
Then create a website :
The second step : Upload and unzip
The third step : install pm2(node Environmental Science ), Switch node Version to the latest version , install redis
Step four : Open the command line , Switch to the root directory
Step five : If it is a domestic server , Switch the image first :
npm config set registry https://registry.npm.taobao.org
If it is a foreign server, you don't need it , For example, Hong Kong server
Step six : perform npm install
Step seven : Install the database migration tool npm install --save-dev sequelize-cli
Step eight : Modify configuration information :
config/config.default.js
sequelize To configure
oss To configure
...
database/config.json
Database related information
Step nine : Execute the migration command npx sequelize db:migrate
Step 10 :npm start
Step 11 : Add reverse proxy
Add the configuration :
location /ws
{
proxy_pass http://127.0.0.1:7001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}
Manually add reverse proxy 
The twelfth step : Modify the front-end project /common/lib/config.js and manifest.json The domain name inside is ok
边栏推荐
- Sort according to a number in a string in a column of CSV file
- 【ROS】usb_cam相机标定
- [research materials] 2021 Research Report on China's smart medical industry - Download attached
- [cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
- MySQL learning record 10getting started with JDBC
- Vocabulary notes for postgraduate entrance examination (3)
- Cisp-pte practice explanation
- China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
- Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
- 1204 character deletion operation (2)
猜你喜欢

Wincc7.5 download and installation tutorial (win10 system)

2022.02.13 - 238. Maximum number of "balloons"
![[MySQL] lock](/img/ce/9f8089da60d9b3a3f92a5e4eebfc13.png)
[MySQL] lock
![[research materials] 2021 Research Report on China's smart medical industry - Download attached](/img/c8/a205ddc2835c87efa38808cf31f59e.jpg)
[research materials] 2021 Research Report on China's smart medical industry - Download attached

Circular reference of ES6 module

704 二分查找

2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers

vulnhub hackme: 1

2022.02.13 - NC001. Reverse linked list

C语言 - 位段
随机推荐
Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
VMware 虚拟化集群
VMware virtualization cluster
Restore backup data on S3 compatible storage with br
[secretly kill little partner pytorch20 days -day01- example of structured data modeling process]
使用 Dumpling 备份 TiDB 集群数据到兼容 S3 的存储
ESP系列引脚说明图汇总
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
China polyether amine Market Forecast and investment strategy report (2022 Edition)
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
堆排序详解
leetcode刷题 (5.31) 字符串
Hill sort c language
Analysis of Top1 accuracy and top5 accuracy examples
2022.02.13 - NC003. Design LRU cache structure
Circular reference of ES6 module
Synchronized solves problems caused by sharing
从 SQL 文件迁移数据到 TiDB
【MySQL】鎖
Unified ordering background interface product description Chinese garbled