mirror of
https://github.com/zhigang1992/favicongrabber.com.git
synced 2026-04-29 18:14:53 +08:00
Add scripts for nginx
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
NGINX_CONF=/etc/nginx
|
||||
|
||||
SITE_HOME=`cd $(dirname $0)/../.. && pwd`
|
||||
SITE_NAME=`basename $SITE_HOME`
|
||||
|
||||
sudo ln -s --force $SITE_HOME/nginx/server.nginx $NGINX_CONF/sites-enabled/$SITE_NAME
|
||||
@@ -26,13 +26,16 @@
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "gulp clean",
|
||||
"build:nginx-conf": "node -r dotenv/config nginx/bin/build-conf",
|
||||
"build:gulp": "gulp default:production",
|
||||
"build:webpack": "webpack --progress --hide-modules",
|
||||
"build": "run-s clean build:*",
|
||||
"dev:gulp": "gulp default:development",
|
||||
"dev:webpack": "webpack --watch",
|
||||
"dev": "npm run clean && run-p -r dev:*",
|
||||
"nginx:build-conf": "node -r dotenv/config nginx/bin/build-conf",
|
||||
"nginx:enable-site": "sudo ln -s --force `pwd`/nginx/server.nginx /etc/nginx/sites-enabled/favicongrabber.com",
|
||||
"nginx:reload": "sudo nginx -s reload",
|
||||
"nginx": "run-s nginx:build-conf nginx:enable-site nginx:reload",
|
||||
"start": "node -r dotenv/config server/",
|
||||
"test": "mocha -r dotenv/config --timeout 7000 test/*.js test/**/*.js"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user