O fluxo apresentado abaixo baseia-se no modelo de Feature Branches com release, isto é, cada nova feature gera um novo branch, que é integrado com o develop
. Esse, por sua vez, aguarda a data de liberação de uma release para ser integrado ao master
.
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
# STORAGE CONFIGURATION IN S3 AWS | |
AWS_ACCESS_KEY_ID= | |
AWS_SECRET_ACCESS_KEY= | |
AWS_STORAGE_BUCKET_NAME= |
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
# Shell script to create a app in heroku and deploy this. | |
# Working for python 3.5.0 | |
# This script require heroku toolbelt installed and configured | |
# Usage: | |
# cd my_django_project | |
# curl https://gist.githubusercontent.com/diegosorrilha/68e2f411265c81e79ebc379a9ac26d49/raw/6b9c22779bbaf58a9de914ac78848f4701211e2b/django-start-deploy-heroku.sh -o ../django-start-deploy-heroku.sh | |
# WARNING: <namemyappdjango> Name need be same of the your app django | |
# source ../django-start-deploy-heroku.sh namemyappdjango |
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
# Shell script to create a basics Django project. | |
# This script require Python 3.x and pyenv | |
# This script was based in gist of @rg3915 => https://gist.github.com/rg3915/a264d0ade860d2f2b4bf | |
# The project contains: | |
# Settings config to Django 1.10 | |
# Admin config | |
# Tests in view home | |
# Download: |
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
#! /usr/bin/env python | |
import posixpath | |
import argparse | |
import urllib | |
import os | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
from BaseHTTPServer import HTTPServer |
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
#!/usr/bin/env python | |
""" | |
Django SECRET_KEY generator. | |
""" | |
from django.utils.crypto import get_random_string | |
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)' | |
print(get_random_string(50, chars)) |
Command | Sample | Description |
---|---|---|
pipe | - | Liga a saida de um comando na entrada de outro |
&& | cmd && cmd | Executa um comando logo após o outro |
cat | cat | Duplica o conteúdo digitado (ctrl+d = sair) |
cat | cat file.txt | Lê um arquivo (ctrl+d = sair) |
cat | cat > file.txt | Cria um arquivo com o conteúdo digitado (ctrl+d = sair) |