Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | ๐ :tada: |
Version tag | ๐ :bookmark: |
New feature | โจ :sparkles: |
Bugfix | ๐ :bug: |
mkdir ~/vim | |
cd ~/vim | |
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
# Compiled on Jul 20 2017 | |
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
export VIMRUNTIME="$HOME/vim/runtime" | |
export PATH="$HOME/vim:$PATH" | |
cd - |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | ๐ :tada: |
Version tag | ๐ :bookmark: |
New feature | โจ :sparkles: |
Bugfix | ๐ :bug: |
[uwsgi] | |
# Django-related settings | |
# the base directory (full path) | |
chdir = /home/ubuntu/(project-dir) | |
# Django's wsgi file | |
module = (project-name).wsgi:application | |
# the virtualenv (full path) | |
home = /home/ubuntu/.venv/(venv-name)/ |
This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI.
On Project Settings > Environment Variables add this keys:
# Pyenv ์ค์น (https://github.com/yyuu/pyenv-virtualenv)
brew install pyenv-virtualenv
# ~/.bash_profile ํ์ผ์ ์๋ ๋ด์ฉ ์ถ๊ฐ
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# ์ฌ์ฉํ Python ๋ฒ์ ์ ๋ฏธ๋ฆฌ ๊น๊ณ
pyenv install 3.6.0
์์ ์ git ํ๋ก์ ํธ ํด๋ ์ .git/hooks/pre-commit ํ์ผ์ ์๋ ๋ด์ฉ์ ๋ฃ์ผ์ธ์.
#!/bin/sh
FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -e '\.py$')
if [ -n "$FILES" ]; then
flake8 $FILES
fi
django ๊ธฐ๋ณธ ํ ์คํธ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ง์ด๊ทธ๋ ์ด์ ๋์ ๋๋ฆฌ๊ณ ๋ฒ๊ฑฐ๋กญ๊ธฐ ๋๋ฌธ์ py.test์ model_mommy๋ฅผ ์ฌ์ฉํด์ ๋น ๋ฅด๊ฒ ํ ์คํธ๋ฅผ ํ๋ ๋ฐฉ๋ฒ์ ์๊ฐํจ.