mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
replace ROOT_PATH to <ROOT_PATH> in template file
This commit is contained in:
parent
a823823dca
commit
d05ee86bfb
@ -233,11 +233,11 @@ var _copyWwwFiles = function(){
|
||||
|
||||
var ROOT_PATH = cwd + '/' + projectRootPath + 'www';
|
||||
copyFile('nginx.conf', projectRootPath + 'nginx.conf', {
|
||||
ROOT_PATH: ROOT_PATH
|
||||
'<ROOT_PATH>': ROOT_PATH
|
||||
});
|
||||
copyFile('pm2.json', projectRootPath + 'pm2.json', {
|
||||
ROOT_PATH: ROOT_PATH,
|
||||
APP_NAME: getAppName()
|
||||
'<ROOT_PATH>': ROOT_PATH,
|
||||
'<APP_NAME>': getAppName()
|
||||
});
|
||||
|
||||
copyFile('.gitignore', projectRootPath + '.gitignore');
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root ROOT_PATH;
|
||||
root <ROOT_PATH>;
|
||||
set $node_port 8360;
|
||||
|
||||
index index.js index.html index.htm;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
{
|
||||
"apps": [{
|
||||
"name": "APP_NAME",
|
||||
"name": "<APP_NAME>",
|
||||
"script": "production.js",
|
||||
"cwd": "ROOT_PATH",
|
||||
"cwd": "<ROOT_PATH>",
|
||||
"max_memory_restart": "1G",
|
||||
"autorestart": true,
|
||||
"node_args": [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user