-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated README.md * version pump
- Loading branch information
Martin Hecher
committed
Feb 22, 2015
1 parent
6b8d52a
commit 216f060
Showing
10 changed files
with
78 additions
and
51 deletions.
There are no files selected for viewing
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
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
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
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
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,11 +1,19 @@ | ||
#!/bin/sh | ||
|
||
# TODO: read all necessary data from file! | ||
# TODO: use proper config file! | ||
SERVICEFILE=./service-info.txt | ||
|
||
SERVICENAME=$(cat ./service-info.txt) | ||
INDEXFILE="app.js" | ||
FOLDER="../" | ||
SERVICENAME=$(sed '2q;d' $SERVICEFILE) | ||
INDEXFILE=$(sed '10q;d' $SERVICEFILE) | ||
APPFOLDER=$(dirname "${INDEXFILE}") | ||
|
||
#(cd $FOLDER; pm2 delete $SERVICENAME; pm2 start $INDEXFILE -x --name $SERVICENAME) | ||
# FIXXME: pm2 with --watching enabled currently restarts the service permanently. | ||
# We are using nodemon to circumvent this problem but are working on a solution | ||
# to make it work with pm2 | ||
|
||
# Using 'pm2' as process manager: | ||
#pm2 delete $SERVICENAME; pm2 start $INDEXFILE -x --name $SERVICENAME --watch | ||
#pm2 logs | ||
(cd $FOLDER; nodemon -w api -w config) | ||
|
||
# Using 'nodemon' as process manager: | ||
(cd $APPFOLDER; nodemon -w api -w config) |
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,11 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# TODO: read all necessary data from file! | ||
# TODO: use proper config file! | ||
SERVICEFILE=./service-info.txt | ||
|
||
SERVICENAME=$(cat ./service-info.txt) | ||
INDEXFILE="app.js" | ||
FOLDER="../" | ||
SERVICENAME=$(sed '2q;d' $SERVICEFILE) | ||
INDEXFILE=$(sed '10q;d' $SERVICEFILE) | ||
APPFOLDER=$(dirname "${INDEXFILE}") | ||
|
||
#(cd $FOLDER; pm2 delete $SERVICENAME; pm2 start $INDEXFILE -x --name $SERVICENAME -- --prod) | ||
#pm2 logs | ||
(cd $FOLDER; nodemon) | ||
# Using 'pm2' application manager: | ||
pm2 delete $SERVICENAME; pm2 start $INDEXFILE -x --name $SERVICENAME -- --prod | ||
pm2 logs | ||
|
||
# Using 'nodemon' for application control: | ||
(cd $APPFOLDER; nodemon -w api -w config) |
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,5 +1,10 @@ | ||
# namespace: | ||
local | ||
# imagename: | ||
microservice-base | ||
# dockerfile location: | ||
../ | ||
|
||
../ | ||
# volume folder (can be empty, but has to be absolute if present) | ||
/tmp | ||
# indexfile: | ||
../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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/sh | ||
|
||
# TODO: use proper config file! | ||
SERVICEFILE=./service-info.txt | ||
|
||
SRC=$(sed '5q;d' $SERVICEFILE) | ||
INDEXFILE=$(sed '10q;d' $SERVICEFILE) | ||
APPFOLDER=$(dirname "${INDEXFILE}") | ||
|
||
echo "Setting up project:" | ||
echo " * installing dependencies: (cd $SRC && npm install && bower install)" | ||
(cd $SRC && npm install && bower install) | ||
echo "\nSetting up project:" | ||
echo "\n * installing dependencies: (cd $APPFOLDER && npm install && bower install)\n" | ||
(cd $APPFOLDER && npm install && bower install) |
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,15 +1,17 @@ | ||
#!/bin/sh | ||
|
||
# TODO: use proper config file! | ||
SERVICEFILE=./service-info.txt | ||
|
||
SRC=$(sed '5q;d' $SERVICEFILE) | ||
INDEXFILE=$(sed '10q;d' $SERVICEFILE) | ||
APPFOLDER=$(dirname "${INDEXFILE}") | ||
|
||
echo "Starting test suite:" | ||
echo " * installing global dependencies: npm install -g sails\n\n" | ||
echo "\nStarting test suite:" | ||
echo "\n * installing global dependencies: npm install -g sails (NOTE: Assumes you are root!\n" | ||
npm install -g sails | ||
|
||
echo "\n\n * installing local dependencies: (cd $SRC && npm -d install)\n\n" | ||
(cd $SRC && npm -d install) | ||
echo "\n\n * installing local dependencies: (cd $APPFOLDER && npm -d install)\n\n" | ||
(cd $APPFOLDER && npm -d install) | ||
|
||
echo "\n\n * execute tests: (cd $SRC && npm test)" | ||
(cd $SRC && npm test) | ||
echo "\n\n * execute tests: (cd $APPFOLDER && npm test)" | ||
(cd $APPFOLDER && npm test) |
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