当前位置:网站首页>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
边栏推荐
- 从 SQL 文件迁移数据到 TiDB
- [MySQL] database stored procedure and storage function clearance tutorial (full version)
- logback1.3. X configuration details and Practice
- [luatos-air551g] 6.2 repair: restart caused by line drawing
- 【MySQL】锁
- Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
- CISP-PTE实操练习讲解
- Mobile Test Engineer occupation yyds dry goods inventory
- logback1.3. X configuration details and Practice
- Research and investment forecast report of citronellol industry in China (2022 Edition)
猜你喜欢
Résumé des diagrammes de description des broches de la série ESP
Pointer advanced --- pointer array, array pointer
MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
JVM performance tuning and practical basic theory - Part 1
Let the bullets fly for a while
[cloud native] teach you how to build ferry open source work order system
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
指针进阶---指针数组,数组指针
2022.02.13 - NC003. Design LRU cache structure
随机推荐
Online yaml to CSV tool
leetcode刷题 (5.29) 哈希表
JVM 快速入门
按位逻辑运算符
[MySQL] log
3. File operation 3-with
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
Verrouillage [MySQL]
sys.argv
使用 BR 备份 TiDB 集群数据到兼容 S3 的存储
[research materials] 2021 China online high growth white paper - Download attached
C语言 - 位段
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
使用 TiDB Lightning 恢复 S3 兼容存储上的备份数据
Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
根据csv文件某一列字符串中某个数字排序
ESP series pin description diagram summary
【MySQL】日志
Deep learning: derivation of shallow neural networks and deep neural networks
Permutation and combination function