replace ROOT_PATH to <ROOT_PATH> in template file

This commit is contained in:
lichengyin 2015-09-07 10:02:36 +08:00
parent a823823dca
commit d05ee86bfb
3 changed files with 6 additions and 6 deletions

View File

@ -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');

View File

@ -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;

View File

@ -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": [],