-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (31 loc) · 1.26 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# _________ __ .__ .___
# / _____// |_ ___________ _______ _ _|__| ____ __| _/
# \_____ \\ __\/ _ \_ __ \/ \ \/ \/ / |/ \ / __ |
# / \| | ( <_> ) | \/ Y Y \ /| | | \/ /_/ |
# /_______ /|__| \____/|__| |__|_| /\/\_/ |__|___| /\____ |
# \/ \/ \/ \/
# visualbbasic@gmail.com
include .make/Makefile.inc
include .compose/Makefile
APP_PORT ?= 9002
THIS_FILE := $(lastword $(MAKEFILE_LIST))
export
# Local IP address for development environment
LOCAL_IP ?= "localhost"
## Initiates frontend development environment. Default port is set to 9001
frontend-dev:
sbt "~run -Dconfig.resource=development.conf ${APP_PORT}"
frontend-clean:
# Removes all .db files
find ./ -name "*.db" -exec rm -rf {} \;
## Starts frontend in production mode using Docker
frontend-docker-prod:
docker run \
-e DB_DEFAULT_PROFILE="slick.jdbc.H2Profile\$$" \
-e DB_DEFAULT_DRIVER="org.h2.Driver" \
-e DB_DEFAULT_URL="jdbc:h2:./stormwind" \
-e DB_DEFAULT_USER="sa" \
-e DB_DEFAULT_PASSWORD="" \
--entrypoint "bin/play-scala-starter-example" \
-p 9000:9000 play-scala-starter-example:1.0-SNAPSHOT \
"-Dconfig.file=/opt/docker/conf/production.conf"