This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| самый простой способ зайти по ssh на продакшен и у бинарника которым запускаешь проект выполнить attach_console | |
| [12:45] | |
| или есть сложней способ, сделать тунелирование портов с продакшена | |
| их список можно увидеть запустив команду | |
| `epmd -names` | |
| `ssh -N remote_hose -L port1_from_command_above:localhost:port1_from_command_above -L port2_from_command_above:localhost:port2_from_command_above` | |
| запустить свою локальную версию продакшен проекта с таким же значением куки как и продакшен, и вуаля ты можешь видеть все что происходит на продакшене | |
| например запустить observer (edited) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.5 | |
| ARG APP | |
| EXPOSE 5000 | |
| EXPOSE 4369 | |
| ENV PORT=5000 \ | |
| MIX_ENV=prod | |
| RUN apk --no-cache add ncurses openssl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: docker:latest | |
| variables: | |
| PWD: $(pwd) | |
| BUILD_BOX: webdeb/phx-dev | |
| DATA_BOX: build_data_$CI_PROJECT_ID_$CI_BUILD_REF | |
| stages: | |
| - build | |
| - test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias gitlab-run='gitlab-runner exec docker --docker-volumes "/var/run/docker.sock:/var/run/docker.sock" --docker-privileged' |
NewerOlder