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 |
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
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
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
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
{ | |
"AWSEBDockerrunVersion": "1", | |
"Logging": "/tmp/app", | |
"Image": { | |
"Update": "true" | |
} | |
} |
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
Usefull commons extensions to install at ~/.ebextensions directory |
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
:: @Path C:\Windows\System32\git.bat | |
:: | |
:: @Use in CMD or Powershell "git <command>" | |
:: | |
@echo off | |
C:\Windows\System32\bash.exe -c "git %*" |
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
import React from 'react' | |
import PropTypes from 'prop-types' | |
/** | |
* NumberMaskedInput component | |
* Created by habib on 5/06/2020 | |
* | |
* @public | |
* @class |
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
# Dockerfile | |
ARG NODE_VERSION='12.18-alpine' | |
# --------------- Build | |
FROM node:${NODE_VERSION} As development | |
WORKDIR /usr/src/app | |
COPY package*.json ./ |
OlderNewer