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
GULP = ./node_modules/gulp/bin/gulp.js
GULP = node ./node_modules/gulp/bin/gulp.js
FLYWAY = flyway -configFile=config/db.makefile
default: deploy
@
......@@ -13,6 +14,9 @@ install: DB_install Tasker_deploy
deploy: DB_deploy Tasker_deploy
$(GULP)
fw_deploy: fw_migrate Tasker_deploy
$(GULP)
# copy server files
copy_files: Tasker_deploy
$(GULP) --release --force
......@@ -32,13 +36,23 @@ release: DB_update release_no_db
# server deploy with dump load
load_deploy: DB_deployTest copy_files
# -----------------------
# Tasker section
Tasker_deploy:
npm install
# -----------------------
# Flyway
fw_info:
$(FLYWAY) info
fw_clean:
$(FLYWAY) clean
fw_migrate:
$(FLYWAY) migrate
# -----------------------
# 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