当前位置:网站首页>PKG package node project (express)
PKG package node project (express)
2022-06-28 05:49:00 【Joey_ Tribiani】
pkg pack node engineering (express)
// Windows
pkg -t win package.json
// Linux
pkg -t l package.json
If an error is reported and cannot be found bin
It's just package.json Add
“bin”: “./bin/www”,
Note the need for package.json Middle configuration pkg Static file directory to package
"bin": "server.js",
"pkg": {
"assets": [
"public/**/*",
"views/**/*"
]
}
After configuring static file directories, you should pay attention to the path problem when using these directories
app.use(express.static(path.join(__dirname, "public")));
// app.use(express.static("public"))
边栏推荐
- What does mysql---where 1=1 mean
- 数据仓库:分层设计详解
- [Linux] - using xshell to install MySQL on Linux and realize the deployment of webapp
- Ape pink ape power - Developer activity attack!
- 从0配置redis
- 阴阳师页面
- 数据中台:数据治理的七把利剑
- Solution of dam safety automatic monitoring system for medium and small reservoirs
- 6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature
- ERP软件公司选型的重要根据
猜你喜欢

Oracle 条件、循环语句

深度学习19种损失函数

Lhasa accordion

Binder interview: memory management unit

Why is point shield cloud forced to quit playing?

JSP connecting Oracle to realize login and registration

What is webrtc?

線條動畫

codeforces每日5题(均1700)

2022 new version NFT source code source code of China meta universe digital collection art trading platform
随机推荐
Typescript base type
Jenkins继续集成2
Capacity scheduling absolute value configuration queue usage and pit avoidance
? How to write the position to output true
Qtcanpool knowledge 07:ribbon
Install kubebuilder
Flink 窗口机制 (两次等待, 最后兜底)
函数栈帧的创建和销毁
Detailed usage configuration of the shutter textbutton, overview of the shutter buttonstyle style and Practice
Mysql-17- create and manage tables
中小型水库大坝安全自动监测系统解决方案
Valueerror: iterative over raw text documents expected, string object received
YYGH-8-预约挂号
如何在您的Shopify商店中添加实时聊天功能?
数据中台:AI中台的实施与总结
numpy.reshape, numpy.transpose的理解
数据中台:六问数据中台
Data midrange: implementation and summary of AI midrange
Jenkins持续集成1
2022 new version NFT source code source code of China meta universe digital collection art trading platform