Store ember app in 'app' folder
This commit is contained in:
parent
b03e481150
commit
3b4b89c0e9
6 changed files with 18 additions and 9 deletions
|
@ -1,3 +1,3 @@
|
||||||
*
|
*
|
||||||
!gui
|
!app
|
||||||
!surreal
|
!surreal
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -37,6 +37,7 @@ surreal.db
|
||||||
# Other
|
# Other
|
||||||
# -----------------------------------
|
# -----------------------------------
|
||||||
|
|
||||||
|
app/
|
||||||
dev/
|
dev/
|
||||||
vendor/
|
vendor/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
|
@ -2,7 +2,7 @@ FROM alpine:3.4
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
|
|
||||||
ADD gui gui/
|
ADD app app/
|
||||||
ADD surreal .
|
ADD surreal .
|
||||||
|
|
||||||
EXPOSE 8000 33693
|
EXPOSE 8000 33693
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -99,3 +99,15 @@ install: clean
|
||||||
install: glide
|
install: glide
|
||||||
install:
|
install:
|
||||||
CGO_ENABLED=0 $(GO) install -a -v -ldflags '$(LDF)'
|
CGO_ENABLED=0 $(GO) install -a -v -ldflags '$(LDF)'
|
||||||
|
|
||||||
|
# The `make ember` command compiles
|
||||||
|
# the ember project, and outputs
|
||||||
|
# the build files in the app folder.
|
||||||
|
|
||||||
|
.PHONY: ember
|
||||||
|
ember:
|
||||||
|
# npm install -g bower
|
||||||
|
# npm install -g ember-cli
|
||||||
|
cd gui && npm cache clean && bower cache clean
|
||||||
|
# cd gui && npm install && bower install
|
||||||
|
cd gui && ember build -prod -o ../app/
|
|
@ -32,12 +32,7 @@ checkout:
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
override:
|
override:
|
||||||
- cd gui/
|
- docker info
|
||||||
- npm install -g bower
|
|
||||||
- npm install -g ember-cli
|
|
||||||
- npm cache clean && bower cache clean
|
|
||||||
- npm install && bower install
|
|
||||||
- ember build -prod
|
|
||||||
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
- go get -u github.com/Masterminds/glide
|
- go get -u github.com/Masterminds/glide
|
||||||
|
|
||||||
|
@ -47,6 +42,7 @@ test:
|
||||||
override:
|
override:
|
||||||
- make test
|
- make test
|
||||||
- make build
|
- make build
|
||||||
|
- make ember
|
||||||
- docker build -t abcum/surreal .
|
- docker build -t abcum/surreal .
|
||||||
- docker run -d abcum/surreal start; sleep 15
|
- docker run -d abcum/surreal start; sleep 15
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ func output(c *fibre.Context, res interface{}) error {
|
||||||
|
|
||||||
func routes(s *fibre.Fibre) {
|
func routes(s *fibre.Fibre) {
|
||||||
|
|
||||||
s.Dir("/", "gui/dist/")
|
s.Dir("/", "app/")
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Endpoint for health checks
|
// Endpoint for health checks
|
||||||
|
|
Loading…
Reference in a new issue