Browse Source

Fixed data junction

pull/3/head
samuel 4 years ago
parent
commit
5c9c6ffe76
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      index.js

+ 4
- 2
index.js View File

return dbsForLabel[label] || 'mysql' return dbsForLabel[label] || 'mysql'
} }


var gitInstallDir = "C:\\Program Files\\Git\\bin\\sh.exe"
// var gitInstallDir = "G:\\Installed\\Git\\bin\\sh.exe"
// Relevant git repos // Relevant git repos
var gitRepos = [ var gitRepos = [
'ember-masonry-grid' 'ember-masonry-grid'
var getPullCmd = (repo)=>{ var getPullCmd = (repo)=>{
// console.log(useGitPull) // console.log(useGitPull)


var pullCmd = ["C:\\Program Files\\Git\\bin\\sh.exe"
var pullCmd = [ gitInstallDir
, ['-c', 'branch=`git rev-parse --abbrev-ref HEAD`;for i in `git remote`; do git pull $i $branch; done;'] , ['-c', 'branch=`git rev-parse --abbrev-ref HEAD`;for i in `git remote`; do git pull $i $branch; done;']
, { cwd : repo, title : 'pull all origins for ' + repo }] , { cwd : repo, title : 'pull all origins for ' + repo }]
// var pullCmd = ['pullall', [], { cwd : repo }] // var pullCmd = ['pullall', [], { cwd : repo }]
tasks = tasks.concat( tasks = tasks.concat(
[ [
()=>{ ()=>{
var p = nodeShellExec('mklink', ['/D', 'data', runconfig.use + '-data'], {
var p = nodeShellExec('mklink', ['/J', 'data', runconfig.use + '-data'], {
inherit : true, shell: true inherit : true, shell: true
, env: process.env , env: process.env
}).catch((e)=>{ console.error(e) }) }).catch((e)=>{ console.error(e) })

Loading…
Cancel
Save