[DOC] test autodeployment on README + fix typo
This commit is contained in:
parent
db8da61c38
commit
eedf934ca5
|
@ -3,6 +3,11 @@ This is a microservice cutted out of a [Monolith](https://gitlab.com/matthiassto
|
|||
|
||||
[](https://travis-ci.org/genofire/hs_master-kss-monolith) [](https://circleci.com/gh/genofire/hs_master-kss-monolith/tree/master) [](https://coveralls.io/github/genofire/hs_master-kss-monolith?branch=master) [](https://godoc.org/github.com/genofire/hs_master-kss-monolith)
|
||||
|
||||
## Test of autodeployment
|
||||
|
||||
* [Stock-Admin](https://stock.pub.warehost.de/)
|
||||
* [Easy dummy Shop-Cart in browser-cache](https://stock.pub.warehost.de/dummy_cart/)
|
||||
|
||||
## Features of this stock mircoservice
|
||||
* The main functionality of the microservice is to store the goods with their storage location and a time stamp, when they where stored.
|
||||
* Functionality of the admin frontend
|
||||
|
|
|
@ -8,8 +8,8 @@ RETVAL=$?
|
|||
[ $RETVAL -ne 0 ] && exit 1
|
||||
scp -q -P $port ~/.go_workspace/bin/stock $remote:~/bin/stock;
|
||||
RETVAL=$?
|
||||
sed -ie 's/http:\/\/localhost:8080/https:\/\/stock.pub.warehost.de/g' webroot/static/js/main.js
|
||||
[ $RETVAL -eq 0 ] && RETVAL=$?
|
||||
# sed -ie 's/http:\/\/localhost:8080/https:\/\/stock.pub.warehost.de/g' webroot/static/js/main.js
|
||||
# [ $RETVAL -eq 0 ] && RETVAL=$?
|
||||
rsync -e "ssh -p $port" -a webroot/ $remote:~/lib/stock/www;
|
||||
[ $RETVAL -eq 0 ] && RETVAL=$?
|
||||
rsync -e "ssh -p $port" -a contrib/ $remote:~/lib/stock/contrib;
|
||||
|
|
|
@ -69,9 +69,9 @@
|
|||
<script src="/node_modules/angular-loading-bar/build/loading-bar.min.js"></script>
|
||||
<script>
|
||||
var config = {
|
||||
'microservice_dependencies': {
|
||||
'products': 'http://localhost:8080/api-test/product/',
|
||||
'productById': 'http://localhost:8080/api-test/product/%d/',
|
||||
'microservice_dependencies': {
|
||||
'products': '/api-test/product/',
|
||||
'productById': '/api-test/product/%d/',
|
||||
'lockGoods': '/api/goods/locking',
|
||||
'unlockGoods': '/api/goods/locking'
|
||||
}
|
|
@ -46,7 +46,7 @@ var config = {
|
|||
},
|
||||
},
|
||||
'microservice_dependencies': {
|
||||
'products': 'http://localhost:8080/api-test/product/',
|
||||
'productById': 'http://localhost:8080/api-test/product/%d/'
|
||||
'products': '/api-test/product/',
|
||||
'productById': '/api-test/product/%d/'
|
||||
}
|
||||
};
|
||||
|
|
Reference in New Issue