Skip to content

Commit 41b7ddc

Browse files
Docker_edit
1 parent f40a96b commit 41b7ddc

File tree

7,271 files changed

+1136999
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,271 files changed

+1136999
-86
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ COPY . /app/
2929
EXPOSE 8000
3030

3131

32-
RUN python3 /app/pygoat/manage.py migrate
32+
RUN python3 /app/manage.py migrate
3333
WORKDIR /app/pygoat/
3434
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers","6", "pygoat.wsgi"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pygoat/app.log renamed to app.log

File renamed without changes.

bin/activate

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# This file must be used with "source bin/activate" *from bash*
2+
# you cannot run it directly
3+
4+
5+
if [ "${BASH_SOURCE-}" = "$0" ]; then
6+
echo "You must source this script: \$ source $0" >&2
7+
exit 33
8+
fi
9+
10+
deactivate () {
11+
unset -f pydoc >/dev/null 2>&1 || true
12+
13+
# reset old environment variables
14+
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
15+
if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then
16+
PATH="$_OLD_VIRTUAL_PATH"
17+
export PATH
18+
unset _OLD_VIRTUAL_PATH
19+
fi
20+
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
21+
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
22+
export PYTHONHOME
23+
unset _OLD_VIRTUAL_PYTHONHOME
24+
fi
25+
26+
# The hash command must be called to get it to forget past
27+
# commands. Without forgetting past commands the $PATH changes
28+
# we made may not be respected
29+
hash -r 2>/dev/null
30+
31+
if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
32+
PS1="$_OLD_VIRTUAL_PS1"
33+
export PS1
34+
unset _OLD_VIRTUAL_PS1
35+
fi
36+
37+
unset VIRTUAL_ENV
38+
if [ ! "${1-}" = "nondestructive" ] ; then
39+
# Self destruct!
40+
unset -f deactivate
41+
fi
42+
}
43+
44+
# unset irrelevant variables
45+
deactivate nondestructive
46+
47+
VIRTUAL_ENV='/home/toxin/Project/gsoc/pygoat/pygoat'
48+
if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then
49+
VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV")
50+
fi
51+
export VIRTUAL_ENV
52+
53+
_OLD_VIRTUAL_PATH="$PATH"
54+
PATH="$VIRTUAL_ENV/bin:$PATH"
55+
export PATH
56+
57+
# unset PYTHONHOME if set
58+
if ! [ -z "${PYTHONHOME+_}" ] ; then
59+
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
60+
unset PYTHONHOME
61+
fi
62+
63+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
64+
_OLD_VIRTUAL_PS1="${PS1-}"
65+
if [ "x" != x ] ; then
66+
PS1="() ${PS1-}"
67+
else
68+
PS1="(`basename \"$VIRTUAL_ENV\"`) ${PS1-}"
69+
fi
70+
export PS1
71+
fi
72+
73+
# Make sure to unalias pydoc if it's already there
74+
alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true
75+
76+
pydoc () {
77+
python -m pydoc "$@"
78+
}
79+
80+
# The hash command must be called to get it to forget past
81+
# commands. Without forgetting past commands the $PATH changes
82+
# we made may not be respected
83+
hash -r 2>/dev/null

bin/activate.csh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This file must be used with "source bin/activate.csh" *from csh*.
2+
# You cannot run it directly.
3+
# Created by Davide Di Blasi <[email protected]>.
4+
5+
set newline='\
6+
'
7+
8+
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
9+
10+
# Unset irrelevant variables.
11+
deactivate nondestructive
12+
13+
setenv VIRTUAL_ENV '/home/toxin/Project/gsoc/pygoat/pygoat'
14+
15+
set _OLD_VIRTUAL_PATH="$PATH:q"
16+
setenv PATH "$VIRTUAL_ENV:q/bin:$PATH:q"
17+
18+
19+
20+
if ('' != "") then
21+
set env_name = '() '
22+
else
23+
set env_name = '('"$VIRTUAL_ENV:t:q"') '
24+
endif
25+
26+
if ( $?VIRTUAL_ENV_DISABLE_PROMPT ) then
27+
if ( $VIRTUAL_ENV_DISABLE_PROMPT == "" ) then
28+
set do_prompt = "1"
29+
else
30+
set do_prompt = "0"
31+
endif
32+
else
33+
set do_prompt = "1"
34+
endif
35+
36+
if ( $do_prompt == "1" ) then
37+
# Could be in a non-interactive environment,
38+
# in which case, $prompt is undefined and we wouldn't
39+
# care about the prompt anyway.
40+
if ( $?prompt ) then
41+
set _OLD_VIRTUAL_PROMPT="$prompt:q"
42+
if ( "$prompt:q" =~ *"$newline:q"* ) then
43+
:
44+
else
45+
set prompt = "$env_name:q$prompt:q"
46+
endif
47+
endif
48+
endif
49+
50+
unset env_name
51+
unset do_prompt
52+
53+
alias pydoc python -m pydoc
54+
55+
rehash

0 commit comments

Comments
 (0)