alias 적용 관련 / 점프투장고 4-08 settings.py 분리

안녕하세요~ 말씀하신대로 .profile의 내용 맨 아래에 다음과 같이 코드를 추가하였습니다.

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

alias mysite='export DJANGO_SETTINGS_MODULE=config.settings.prod;cd ~/projects/mysite;. ~/venvs/mysite/bin/activate'

하지만 'mysite'를 실행해도 'command not found' 라고 나옵니다.
무엇이 잘못되었는지 모르겠습니다. 살펴봐 주시면 정말 감사하겠습니다^^

yje27188795 270

2022년 6월 14일 9:29 오전

터미널을 닫고 다시 실행한후에 mysite를 입력해 보세요. - 박응용님, 2022년 6월 14일 1:48 오후 추천 , 대댓글
목록으로