Skip to content

Commit

Permalink
Calculate couchUrl in CLI parent script
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed May 29, 2017
1 parent 1bee2f3 commit 14cb2ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion bin/medic-conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ if(process.argv.length < 4) {

const project = process.argv[2];
const instanceUrl = process.argv[3];
const couchUrl = `${instanceUrl}/medic`;

require('../src/cli/all.js')(project, instanceUrl);

require('../src/cli/all.js')(project, couchUrl);
6 changes: 2 additions & 4 deletions src/cli/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ const deleteForms = require('../fn/delete-forms');
const uploadForms = require('../fn/upload-forms');
const uploadResources = require('../fn/upload-resources');

module.exports = (project, instanceUrl) => {
const couchUrl = `${instanceUrl}/medic`;

module.exports = (project, couchUrl) => {
return Promise.resolve()

.then(() => big_log(`Uploading project configuration for ${project} to ${instanceUrl}...`))
.then(() => big_log(`Uploading project configuration for ${project} to ${couchUrl}...`))

.then(() => big_log('Compiling app settings...'))
.then(() => compileAppSettings(project))
Expand Down

0 comments on commit 14cb2ac

Please sign in to comment.