Commit 43d22464 authored by Etienne Charlier's avatar Etienne Charlier
Browse files

Do not post message to the backend if we arrive in a state waiting for the user

parent 4eaf6d61
......@@ -199,6 +199,11 @@ public class PaasageModelController extends GenericApiController<PaasageModel, P
LOGGER.info("Action == NO_ACTION: just update the resource, to not publish message");
return;
}
if (updated.getAction().equals(PaasageModel.Action.REASONNED_ONE_PLAN))
{
LOGGER.info("Action == REASONNED_ONE_PLAN: just update the resource, to not publish message. We have to wait for the user");
return;
}
messagingService.publishMessage("PAASAGE", message);
}
}
#!/bin/bash
SSH_HOST="ceticadmin@192.168.65.100"
JAR=paasage-frontend-2016.4.0-SNAPSHOT.jar
SERVICE=paasage-frontend
SRC_DIR=./target
DEST_JAR=org.ow2.paasage.frontend.paasage-frontend-2016.4.0-SNAPSHOT.jar
DEST_DIR=paasage-frontend/app/paasage-frontend/lib
function stop_service()
{
ssh $SSH_HOST "sudo service $SERVICE stop"
}
function start_service()
{
ssh $SSH_HOST "sudo service $SERVICE start"
}
function copy_jar() {
scp $SRC_DIR/$JAR $SSH_HOST:$DEST_DIR/$DEST_JAR
}
echo "Building"
sbt package
echo "Stopping $SERVICE"
stop_service
echo "Copying $JAR"
copy_jar
echo "Starting $SERVICE"
start_service
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment