mirror of
https://github.com/Febbweiss/ProjectDeployer.git
synced 2026-03-04 22:25:38 +00:00
Feature: add command line to run app and environment variables settings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user