This repository has been archived by the owner on Jun 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds backend target to easily run an instance of the backend. Fixes #174
- Loading branch information
1 parent
45368b7
commit cd95401
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ publish: build | |
|
||
travis: build test | ||
|
||
.PHONY: backend | ||
backend: | ||
bin/run_backend.sh | ||
|
Submodule backend
added at
3cd7f0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set +exu | ||
|
||
function get_base_path(){ | ||
cd $(dirname $0) && cd .. && pwd | ||
} | ||
|
||
BASE_DIR="$(get_base_path)" | ||
BACKEND_DIR="${BASE_DIR}/backend" | ||
BACKEND_REPO='https://github.com/OperationCode/operationcode_backend.git' | ||
|
||
echo "Cloning backend repo into $BACKEND_DIR" | ||
git clone $BACKEND_REPO $BACKEND_DIR | ||
|
||
echo "Starting backend" | ||
cd $BACKEND_DIR && make build && make db_create && make db_migrate && make run |