Skip to content

Comments

Lesson 4 br#22

Open
CrAbelleira wants to merge 6 commits intohectorcanto:mainfrom
CrAbelleira:lesson_4_br
Open

Lesson 4 br#22
CrAbelleira wants to merge 6 commits intohectorcanto:mainfrom
CrAbelleira:lesson_4_br

Conversation

@CrAbelleira
Copy link

CREO que la he liado con el GIT. La idea era enviar solo la leccion 4

Copy link
Owner

@hectorcanto hectorcanto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comproba os comentarios, seguramente che falta algún cambio no ex1.conf

exit
docker stop some-nginx
docker rm some-nginx
docker run --name some-nginx -p 8888:80 -d -v /home/cursodocker/dockerexercises/docker_exercises/lesson_4/ex1.conf:/etc/nginx/nginx.conf -v /home/cursodocker/dockerexercises/docker_exercises/lesson_4/src/ex1_web.html:/var/www/index.html nginx:1.22.1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recorda que podes user $(pwd) para substituír o teu directorio actual. Na maioría dos casos unha ruta relativa vai funcionar. Eu uso ./folder/file.conf co "./" diante para indicar claramente que é unha ruta relativa e diferenciar do nome dun volument (que en casos extremos odería coincidir cun nome de volume)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modificaches o ex1.conf? o que hai está sen completar

### Part 2

### Part 3 logs
Pese a que los volumenes parecen bien montados y los archivos efectivamente están donde deberían, no me muestra la página correcta ni a tiros.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revisa o ex1.conf. Tes que modificalo usando o nginx.conf de dentro máis a sección "server" de lesson_4/src/nginx.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants