Skip to content
Snippets Groups Projects
Commit 25c906d9 authored by Artem Konenko's avatar Artem Konenko Committed by Роман Штейнберг
Browse files

#77 Add targets to Makefile for flyway db manipulation

parent 23f797c8
Branches
Tags
No related merge requests found
include ./config/path.makefile include ./config/path.makefile
GULP = ./node_modules/gulp/bin/gulp.js GULP = node ./node_modules/gulp/bin/gulp.js
FLYWAY = flyway -configFile=config/db.makefile
default: deploy default: deploy
@ @
...@@ -13,6 +14,9 @@ install: DB_install Tasker_deploy ...@@ -13,6 +14,9 @@ install: DB_install Tasker_deploy
deploy: DB_deploy Tasker_deploy deploy: DB_deploy Tasker_deploy
$(GULP) $(GULP)
fw_deploy: fw_migrate Tasker_deploy
$(GULP)
# copy server files # copy server files
copy_files: Tasker_deploy copy_files: Tasker_deploy
$(GULP) --release --force $(GULP) --release --force
...@@ -32,13 +36,23 @@ release: DB_update release_no_db ...@@ -32,13 +36,23 @@ release: DB_update release_no_db
# server deploy with dump load # server deploy with dump load
load_deploy: DB_deployTest copy_files load_deploy: DB_deployTest copy_files
# ----------------------- # -----------------------
# Tasker section # Tasker section
Tasker_deploy: Tasker_deploy:
npm install npm install
# -----------------------
# Flyway
fw_info:
$(FLYWAY) info
fw_clean:
$(FLYWAY) clean
fw_migrate:
$(FLYWAY) migrate
# ----------------------- # -----------------------
# database forwarding # database forwarding
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment