docker updated
This commit is contained in:
@@ -23,7 +23,7 @@ USER appuser
|
|||||||
COPY . .
|
COPY . .
|
||||||
# Expose the port that the application listens on.
|
# Expose the port that the application listens on.
|
||||||
|
|
||||||
EXPOSE 3503
|
EXPOSE 4999
|
||||||
|
|
||||||
|
|
||||||
# Run the application.
|
# Run the application.
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export const SignupController = async (
|
|||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const { userName, Email, Password } = req.body;
|
const { userName, Email, Password } = req.body;
|
||||||
|
console.log('req.body: ', req.body);
|
||||||
if (!userName || !Email || !Password) {
|
if (!userName || !Email || !Password) {
|
||||||
res.status(400).json({
|
res.status(400).json({
|
||||||
message: "All fields are required",
|
message: "All fields are required",
|
||||||
@@ -19,6 +20,7 @@ export const SignupController = async (
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const result = await AuthSignup(req.body);
|
const result = await AuthSignup(req.body);
|
||||||
|
console.log('result: ', result);
|
||||||
|
|
||||||
switch (result.status) {
|
switch (result.status) {
|
||||||
case "User already exists":
|
case "User already exists":
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ USER root
|
|||||||
COPY . .
|
COPY . .
|
||||||
# Expose the port that the application listens on.
|
# Expose the port that the application listens on.
|
||||||
|
|
||||||
EXPOSE 1059
|
EXPOSE 7999
|
||||||
|
|
||||||
|
|
||||||
# Run the application.
|
# Run the application.
|
||||||
|
|||||||
Reference in New Issue
Block a user