Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Josh Mervine
committed
Apr 9, 2015
1 parent
0ea5feb
commit 79de4cd
Showing
5 changed files
with
4 additions
and
256 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,8 @@ | ||
# Simple Makefile wrappers to support 'make <task>' over 'node make <task>'. | ||
# This is a simple solution to avoid rewriting deployment automation. | ||
### | ||
|
||
all: | ||
node make all | ||
|
||
test: | ||
node make test | ||
|
||
test-nc: | ||
node make test-nc | ||
|
||
travis: test bootlint validator | ||
|
||
clean: | ||
node make clean | ||
|
||
run: | ||
node make run | ||
|
||
start: | ||
node make start | ||
|
||
stop: | ||
node make stop | ||
|
||
restart: | ||
node make restart | ||
|
||
status: | ||
node make status | ||
|
||
help: | ||
node make help | ||
|
||
bootlint: | ||
node make bootlint | ||
|
||
validator: | ||
node make validator | ||
|
||
wp-plugin: setup | ||
node make wp-plugin | ||
|
||
### | ||
# Tasks which remain in Makefile only. | ||
### | ||
|
||
setup: | ||
npm run setup | ||
|
||
nginx/start: | ||
sudo /usr/local/nginx/sbin/nginx -c /home/$(USER)/bootstrap-cdn/nginx.conf | ||
|
||
nginx/stop: | ||
sudo pkill -9 nginx | ||
|
||
nginx/restart: nginx/stop nginx/start | ||
|
||
nginx/reload: nginx/clean nginx.conf | ||
sudo pkill -HUP nginx | ||
|
||
nginx.conf: | ||
sed -e "s/CURRENT_USER/$(USER)/g" .nginx.conf > nginx.conf | ||
node make $@ | ||
|
||
nginx/clean: | ||
rm nginx.conf | ||
%: | ||
node make $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: node app.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79de4cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and how can one test locally stuff now?
79de4cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. This was an oversight. I need to revisit this.