mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
Fix grunt-liquibase
This commit is contained in:
parent
fc09749343
commit
8c891af789
@ -1,4 +1,6 @@
|
|||||||
var dbPort = (process.env.BOXEN_POSTGRESQL_PORT || '5432');
|
// TEMPORARY USE OF GRUNT FOR DB MIGRATIONS
|
||||||
|
|
||||||
|
var dbUrl = process.env.DB_URL || 'postgresql://localhost:5432/unleash';
|
||||||
|
|
||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
grunt.loadNpmTasks('grunt-liquibase');
|
grunt.loadNpmTasks('grunt-liquibase');
|
||||||
@ -6,10 +8,10 @@ module.exports = function(grunt) {
|
|||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
liquibase : {
|
liquibase : {
|
||||||
options: {
|
options: {
|
||||||
username : '',
|
username: '',
|
||||||
password : '',
|
password: '',
|
||||||
url : 'jdbc:postgresql://localhost:' + dbPort + '/unleash',
|
url : 'jdbc:' + dbUrl,
|
||||||
changeLogFile: 'db_changes/db.changelog-master.xml'
|
changeLogFile: 'sql/db_changes/db.changelog-master.xml'
|
||||||
},
|
},
|
||||||
update: {
|
update: {
|
||||||
command: 'update'
|
command: 'update'
|
@ -24,7 +24,7 @@
|
|||||||
"test-bamboo-ci": "mocha test test/*",
|
"test-bamboo-ci": "mocha test test/*",
|
||||||
"db-create": "createdb unleash",
|
"db-create": "createdb unleash",
|
||||||
"db-drop": "dropdb unleash",
|
"db-drop": "dropdb unleash",
|
||||||
"db-migrate": "cd sql && grunt liquibase:update"
|
"db-migrate": "grunt --verbose liquibase:update"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bluebird": "2.2.2",
|
"bluebird": "2.2.2",
|
||||||
@ -36,7 +36,7 @@
|
|||||||
"log4js": "0.6.21",
|
"log4js": "0.6.21",
|
||||||
"nconf": "0.6.9",
|
"nconf": "0.6.9",
|
||||||
"grunt": "^0.4.5",
|
"grunt": "^0.4.5",
|
||||||
"grunt-liquibase": "^0.1.5"
|
"grunt-liquibase": "finn-no/grunt-liquibase#auth-in-url"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "1.9.1",
|
"chai": "1.9.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user