update port
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m24s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m24s
This commit is contained in:
parent
c825d5429e
commit
b50f01b7f9
@ -9,9 +9,9 @@ COPY . .
|
||||
# Build the jar
|
||||
RUN mvn package -q -Dmaven.test.skip -DskipTests -T2C
|
||||
|
||||
# Make port 80 available to the world outside this container
|
||||
EXPOSE 80
|
||||
ENV PORT=80
|
||||
# Make port 3000 available to the world outside this container
|
||||
EXPOSE 3000
|
||||
ENV PORT=3000
|
||||
|
||||
# Run the jar file
|
||||
CMD java -jar target/Paste-Backend.jar -Djava.awt.headless=true
|
@ -1,4 +1,4 @@
|
||||
package cc.fascinated;
|
||||
package cc.fascinated.backend;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
@ -1,4 +1,4 @@
|
||||
package cc.fascinated.common;
|
||||
package cc.fascinated.backend.common;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import lombok.experimental.UtilityClass;
|
@ -1,7 +1,7 @@
|
||||
package cc.fascinated.controller;
|
||||
package cc.fascinated.backend.controller;
|
||||
|
||||
import cc.fascinated.model.Paste;
|
||||
import cc.fascinated.service.PasteService;
|
||||
import cc.fascinated.backend.model.Paste;
|
||||
import cc.fascinated.backend.service.PasteService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
@ -1,6 +1,6 @@
|
||||
package cc.fascinated.exception;
|
||||
package cc.fascinated.backend.exception;
|
||||
|
||||
import cc.fascinated.model.response.ErrorResponse;
|
||||
import cc.fascinated.backend.model.response.ErrorResponse;
|
||||
import io.micrometer.common.lang.NonNull;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
@ -1,4 +1,4 @@
|
||||
package cc.fascinated.exception.impl;
|
||||
package cc.fascinated.backend.exception.impl;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
@ -1,4 +1,4 @@
|
||||
package cc.fascinated.exception.impl;
|
||||
package cc.fascinated.backend.exception.impl;
|
||||
|
||||
import lombok.experimental.StandardException;
|
||||
import org.springframework.http.HttpStatus;
|
@ -1,6 +1,6 @@
|
||||
package cc.fascinated.log;
|
||||
package cc.fascinated.backend.log;
|
||||
|
||||
import cc.fascinated.common.IPUtils;
|
||||
import cc.fascinated.backend.common.IPUtils;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.slf4j.Slf4j;
|
2
src/main/java/cc/fascinated/model/Paste.java → src/main/java/cc/fascinated/backend/model/Paste.java
2
src/main/java/cc/fascinated/model/Paste.java → src/main/java/cc/fascinated/backend/model/Paste.java
@ -1,4 +1,4 @@
|
||||
package cc.fascinated.model;
|
||||
package cc.fascinated.backend.model;
|
||||
|
||||
import io.micrometer.common.lang.NonNull;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
||||
package cc.fascinated.model.response;
|
||||
package cc.fascinated.backend.model.response;
|
||||
|
||||
import io.micrometer.common.lang.NonNull;
|
||||
import lombok.EqualsAndHashCode;
|
@ -1,6 +1,6 @@
|
||||
package cc.fascinated.repository;
|
||||
package cc.fascinated.backend.repository;
|
||||
|
||||
import cc.fascinated.model.Paste;
|
||||
import cc.fascinated.backend.model.Paste;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
/**
|
@ -1,8 +1,8 @@
|
||||
package cc.fascinated.service;
|
||||
package cc.fascinated.backend.service;
|
||||
|
||||
import cc.fascinated.exception.impl.ResourceNotFoundException;
|
||||
import cc.fascinated.model.Paste;
|
||||
import cc.fascinated.repository.PasteRepository;
|
||||
import cc.fascinated.backend.model.Paste;
|
||||
import cc.fascinated.backend.exception.impl.ResourceNotFoundException;
|
||||
import cc.fascinated.backend.repository.PasteRepository;
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
@ -1,6 +1,6 @@
|
||||
server:
|
||||
address: 0.0.0.0
|
||||
port: 80
|
||||
port: 3000
|
||||
servlet:
|
||||
context-path: /
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cc.fascinated;
|
||||
package cc.fascinated.backend;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -13,7 +13,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
||||
|
||||
@SpringBootTest
|
||||
@AutoConfigureMockMvc
|
||||
class MojangControllerTests {
|
||||
class PasteControllerTests {
|
||||
|
||||
@Autowired
|
||||
private MockMvc mockMvc;
|
Reference in New Issue
Block a user