deployment script & tasklist & executor fixes

This commit is contained in:
2021-11-17 19:54:04 +01:00
parent 6b8f5bf013
commit 9d75a87dd6
6 changed files with 18 additions and 11 deletions

View File

@@ -5,6 +5,8 @@ import ch.unisg.tapastasks.tasks.application.port.out.CanTaskBeDeletedPort;
import ch.unisg.tapastasks.tasks.domain.DeleteTaskEvent;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
@@ -19,9 +21,8 @@ import java.util.HashMap;
@Primary
public class CanTaskBeDeletedWebAdapter implements CanTaskBeDeletedPort {
// Base URI of the service interested in this event
//Todo: Add the right IP address
String server = null;
@Value("${roster.uri}")
String server;
@Override
public void canTaskBeDeletedEvent(DeleteTaskEvent event){

View File

@@ -4,6 +4,8 @@ import ch.unisg.tapastasks.tasks.application.port.out.NewTaskAddedEventPort;
import ch.unisg.tapastasks.tasks.domain.NewTaskAddedEvent;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
@@ -18,8 +20,8 @@ import java.util.HashMap;
@Primary
public class PublishNewTaskAddedEventWebAdapter implements NewTaskAddedEventPort {
//This is the base URI of the service interested in this event (in my setup, running locally as separate Spring Boot application)
String server = "http://127.0.0.1:8082";
@Value("${roster.uri}")
String server;
@Override
public void publishNewTaskAddedEvent(NewTaskAddedEvent event) {

View File

@@ -1,2 +1,3 @@
server.port=8081
baseuri=https://tapas-tasks.86-119-34-23.nip.io/
roster.uri=http://127.0.0.1:8082