-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 15 unexpected "}" in /etc/nginx/nginx.conf:10? #861
Comments
Maybe extra "=" in Try try_files $uri $uri/ /index.html; |
@maxim-avramenko i have tried ur solution but still same issue exist can you check my updated docker file also? |
@kapil26021994 Your nginx config is incorrect, you can check it via |
@indapublic here we will put my nginx.conf file content correct? |
@kapil26021994 Yep |
@indapublic thanks for the update and issue fixed now but now i get new error can you please check and let me know what the issue now:
|
Hi @kapil26021994, there are no issues in this output. |
Describe the bug
I have deployed angular file with docker and nginx file but from harness pipeline CI done but CD got issue and in the CD i have added my nginx file as well as error image can anybody help on that regarding that issue i am stuck this issue last 4 days can you help me please ?
Docker file
`FROM artifactorycloud.ual.com/v-docker/node:16-alpine3.16 as build
WORKDIR /usr/src/app
ENV PATH /app/node_modules/.bin:$PATH
COPY package*.json ./
RUN npm install -g @angular/[email protected]
RUN echo $WORKDIR
COPY . .
RUN npm run build
RUN ls -ltr /usr/src/app/dist/isa
FROM nginx:alpine
COPY ./config/nginx.conf /etc/nginx/nginx.conf
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/src/app/dist/isa/ .
EXPOSE 4200`
To reproduce
Steps to reproduce the behaviour:
worker_processes auto;
events {
worker_connections 1024;
}
http {
server {
listen 0.0.0.0:80;
listen [::]:80;
default_type application/octet-stream;
}
}
}
Expected behavior
Fix above error and deploy build
Additional context
Anybody can you help me regarding this issue please let me know?
The text was updated successfully, but these errors were encountered: