Skip to content

Commit 666ae9d

Browse files
committed
Deploy CI CD on Test Server
1 parent 96be653 commit 666ae9d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ ENV PYTHONUNBUFFERED 1
2828
WORKDIR /code
2929

3030
# Copy backend requirements file
31-
COPY ./Backend/EcommerceInventory/requirements.txt /code/
31+
# COPY ./Backend/EcommerceInventory/requirements.txt /code/
3232
RUN pip install -r requirements.txt
3333

3434
# Copy built frontend to Django static files directory
3535
# COPY --from=build-stage /app/frontend/build /code/static/
3636

3737
# Copy Django project files
38-
COPY ./Backend/EcommerceInventory /code/
38+
COPY ./Backend/EcommerceInventory /code/Backend/EcommerceInventory/
3939

4040
# Collect static files
41-
RUN python manage.py collectstatic --no-input
41+
RUN python ./Backend/EcommerceInventory/manage.py collectstatic --no-input
4242

4343
# Expose port 80 (adjust as necessary)
4444
EXPOSE 80
4545

4646
# Command to run Django server
47-
CMD ["gunicorn", "--chdir", "EcommerceInventory.wsgi:application", "--bind", "0.0.0.0:80"]
47+
CMD ["gunicorn", "--chdir", "Backend.EcommerceInventory.EcommerceInventory.wsgi:application", "--bind", "0.0.0.0:80"]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
build:
66
context: .
77
dockerfile: Dockerfile # Adjust the path to your Dockerfile if necessary
8-
command: gunicorn EcommerceInventory.wsgi:application --bind 0.0.0.0:80
8+
command: gunicorn Backend.EcommerceInventory.EcommerceInventory.wsgi:application --bind 0.0.0.0:80
99
ports:
1010
- "80:80"
1111
depends_on:

0 commit comments

Comments
 (0)