This file contains 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
Nginx tips and config |
This file contains 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
stages: | |
- test | |
- deploy | |
test unit: | |
image: node:latest | |
stage: test | |
only: | |
- develop | |
- master |
This file contains 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
Dockerize express app with [Sequelize](https://docs.sequelizejs.com) migrations |
This file contains 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 python:latest | |
# Build arg $settings = (stage, develop, production, local, etc) | |
ARG settings | |
# Django App name | |
ARG $app | |
# Env vars | |
ENV PYTHONDONTWRITEBYTECODE 1 |
This file contains 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
# Get environment variables | |
eb printenv > .env | |
# Remove First line ("Environment Variables:") | |
tail -n +2 .env > tmp.txt | |
# Trim all whitespaces | |
cat tmp.txt | tr -d "[:blank:]" > .env | |
# Result .env file |
NewerOlder