Feature: add command line to run app and environment variables settings

This commit is contained in:
2015-12-07 15:37:41 +00:00
parent 75c0ec650c
commit fe4ac511fc
6 changed files with 193 additions and 27 deletions

View File

@@ -7,16 +7,16 @@ Meteor.methods({
return ProjectService.get(id);
},
addProject: function(label, git_url, public_url ,commands) {
return ProjectService.insert(label, git_url, public_url ,commands, function(errors, id) {
addProject: function(label, git_url, public_url ,commands, run, variables) {
return ProjectService.insert(label, git_url, public_url ,commands, run, variables, function(errors, id) {
if( id ) {
DeploymentService.create(ProjectService.get(id));
}
});
},
editProject: function(id, label, git_url, public_url ,commands) {
ProjectService.update(id, label, git_url, public_url ,commands, function(errors, updated_count) {
editProject: function(id, label, git_url, public_url ,commands, run, variables) {
ProjectService.update(id, label, git_url, public_url ,commands, run, variables, function(errors, updated_count) {
if( updated_count ) {
DeploymentService.update(id);
}