genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0

[DOC] test autodeployment on README + fix typo

This commit is contained in:
Martin Geno 2017-06-05 23:27:27 +02:00
parent db8da61c38
commit eedf934ca5
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
4 changed files with 12 additions and 7 deletions

View File

@ -3,6 +3,11 @@ This is a microservice cutted out of a [Monolith](https://gitlab.com/matthiassto
[![Build Status](https://travis-ci.org/genofire/hs_master-kss-monolith.svg?branch=master)](https://travis-ci.org/genofire/hs_master-kss-monolith) [![CircleCI](https://circleci.com/gh/genofire/hs_master-kss-monolith/tree/master.svg?style=svg)](https://circleci.com/gh/genofire/hs_master-kss-monolith/tree/master) [![Coverage Status](https://coveralls.io/repos/github/genofire/hs_master-kss-monolith/badge.svg?branch=master)](https://coveralls.io/github/genofire/hs_master-kss-monolith?branch=master) [![GoDoc](https://godoc.org/github.com/genofire/hs_master-kss-monolith?status.svg)](https://godoc.org/github.com/genofire/hs_master-kss-monolith) [![Build Status](https://travis-ci.org/genofire/hs_master-kss-monolith.svg?branch=master)](https://travis-ci.org/genofire/hs_master-kss-monolith) [![CircleCI](https://circleci.com/gh/genofire/hs_master-kss-monolith/tree/master.svg?style=svg)](https://circleci.com/gh/genofire/hs_master-kss-monolith/tree/master) [![Coverage Status](https://coveralls.io/repos/github/genofire/hs_master-kss-monolith/badge.svg?branch=master)](https://coveralls.io/github/genofire/hs_master-kss-monolith?branch=master) [![GoDoc](https://godoc.org/github.com/genofire/hs_master-kss-monolith?status.svg)](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 ## 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. * 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 * Functionality of the admin frontend

View File

@ -8,8 +8,8 @@ RETVAL=$?
[ $RETVAL -ne 0 ] && exit 1 [ $RETVAL -ne 0 ] && exit 1
scp -q -P $port ~/.go_workspace/bin/stock $remote:~/bin/stock; scp -q -P $port ~/.go_workspace/bin/stock $remote:~/bin/stock;
RETVAL=$? RETVAL=$?
sed -ie 's/http:\/\/localhost:8080/https:\/\/stock.pub.warehost.de/g' webroot/static/js/main.js # sed -ie 's/http:\/\/localhost:8080/https:\/\/stock.pub.warehost.de/g' webroot/static/js/main.js
[ $RETVAL -eq 0 ] && RETVAL=$? # [ $RETVAL -eq 0 ] && RETVAL=$?
rsync -e "ssh -p $port" -a webroot/ $remote:~/lib/stock/www; rsync -e "ssh -p $port" -a webroot/ $remote:~/lib/stock/www;
[ $RETVAL -eq 0 ] && RETVAL=$? [ $RETVAL -eq 0 ] && RETVAL=$?
rsync -e "ssh -p $port" -a contrib/ $remote:~/lib/stock/contrib; rsync -e "ssh -p $port" -a contrib/ $remote:~/lib/stock/contrib;

View File

@ -70,8 +70,8 @@
<script> <script>
var config = { var config = {
'microservice_dependencies': { 'microservice_dependencies': {
'products': 'http://localhost:8080/api-test/product/', 'products': '/api-test/product/',
'productById': 'http://localhost:8080/api-test/product/%d/', 'productById': '/api-test/product/%d/',
'lockGoods': '/api/goods/locking', 'lockGoods': '/api/goods/locking',
'unlockGoods': '/api/goods/locking' 'unlockGoods': '/api/goods/locking'
} }

View File

@ -46,7 +46,7 @@ var config = {
}, },
}, },
'microservice_dependencies': { 'microservice_dependencies': {
'products': 'http://localhost:8080/api-test/product/', 'products': '/api-test/product/',
'productById': 'http://localhost:8080/api-test/product/%d/' 'productById': '/api-test/product/%d/'
} }
}; };