mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
b47f21a44e
In both local developent, and production. Also, vendor the `envsubst` binary from https://github.com/a8m/envsubst, as it supports default values, which the gnu envsubst (from gettext-base) does not.
31 lines
485 B
Makefile
31 lines
485 B
Makefile
# git-bridge makefile
|
|
|
|
MVN_OPTS := "--no-transfer-progress"
|
|
|
|
runtime-conf:
|
|
/opt/envsubst < conf/envsubst_template.json > conf/runtime.json
|
|
|
|
|
|
run: package runtime-conf
|
|
java -jar \
|
|
target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar \
|
|
conf/runtime.json
|
|
|
|
|
|
build:
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
|
|
test:
|
|
mvn $(MVN_OPTS) test
|
|
|
|
|
|
clean:
|
|
mvn $(MVN_OPTS) clean
|
|
|
|
|
|
package: clean
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
|
|
.PHONY: run package build clean test runtime-conf
|