diff --git a/Makefile b/Makefile index faff1ed..f7ab7cc 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: docker migration dev clean test build-prepare build-js build-css build-font build-go copy-templates watch-js watch-css watch-templates watch +.PHONY: docker migration dev clean test build-prepare build-js build-css build-font build-go copy-templates copy-images watch-js watch-css watch-templates watch DB_USER=test DB_PASS=test @@ -33,7 +33,10 @@ build-go: build-prepare copy-templates: build-prepare cp -r ./src/templates/* ./build/templates -build: build-js build-css build-font copy-templates build-go +copy-images: build-prepare + cp -r ./src/public/img/* ./build/public/img + +build: build-js build-css build-font copy-templates copy-images build-go watch-js: build-prepare node ./node_modules/.bin/nodemon -e js -w src/public/js/app.js -x 'make build-js' & @@ -44,10 +47,13 @@ watch-css: build-prepare watch-templates: build-prepare node ./node_modules/.bin/nodemon -e tmpl -w src/templates -x 'make copy-templates' & +watch-images: build-prepare + node ./node_modules/.bin/nodemon -e jpg,png -w src/public/img -x 'make copy-images' & + watch-go: build-prepare CONFIG_FILE="./config.yml" fresh -c fresh.conf -watch: watch-js watch-css watch-templates watch-go +watch: watch-js watch-css watch-templates watch-images watch-go docker: $(DOCKER_COMPOSE) up -d diff --git a/src/public/img/noimage.png b/src/public/img/noimage.png new file mode 100644 index 0000000..b928769 Binary files /dev/null and b/src/public/img/noimage.png differ diff --git a/src/templates/movies/library.tmpl b/src/templates/movies/library.tmpl index 7a21482..2513319 100644 --- a/src/templates/movies/library.tmpl +++ b/src/templates/movies/library.tmpl @@ -16,7 +16,7 @@ {{ range $.Data.movies }}
{{ end }}