This repository was archived by the owner on Nov 14, 2020. It is now read-only.
File tree 4 files changed +12
-11
lines changed
4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ VERSION_FILE := $(FILES_DIR)/etc/version50
8
8
PLUGINS := audioplayer browser cat debug gist hex info presentation simple statuspage theme
9
9
10
10
NAME := ide50
11
- VERSION := 123
11
+ VERSION := 124
12
12
13
13
define getplugin
14
14
@echo "\nFetching $(1 ) ..."
Original file line number Diff line number Diff line change @@ -105,12 +105,9 @@ export DEBIAN_FRONTEND=noninteractive
105
105
106
106
# flask
107
107
export FLASK_APP=" application.py"
108
- export FLASK_DEBUG=" 1"
109
-
110
- # flask wrapper
111
108
alias flask=" /home/ubuntu/.cs50/bin/flask"
112
109
113
- # http-server wrapper
110
+ # http-server
114
111
alias http-server=" /home/ubuntu/.cs50/bin/http-server"
115
112
116
113
# language
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ if [[ "$1" == "run" ]]; then
14
14
# default options
15
15
host=" --host=0.0.0.0"
16
16
port=" --port=8080"
17
+ reload=" --reload"
17
18
threads=" --with-threads"
18
19
options=" "
19
20
@@ -25,6 +26,8 @@ if [[ "$1" == "run" ]]; then
25
26
host=" $1 "
26
27
elif [[ " $1 " =~ ^--port= ]]; then
27
28
port=" $1 "
29
+ elif [[ " $1 " =~ ^--(no-)? reload$ ]]; then
30
+ reload=" $1 "
28
31
elif [[ " $1 " =~ ^--with(out)? -threads$ ]]; then
29
32
threads=" $1 "
30
33
else
@@ -34,7 +37,7 @@ if [[ "$1" == "run" ]]; then
34
37
done
35
38
36
39
# spawn flask
37
- script --flush --quiet --return /dev/null --command " FLASK_APP=\" $FLASK_APP \" FLASK_DEBUG=\" $FLASK_DEBUG \" flask run $host $port $threads $options " |
40
+ script --flush --quiet --return /dev/null --command " FLASK_APP=\" $FLASK_APP \" FLASK_DEBUG=\" $FLASK_DEBUG \" flask run $host $port $reload $ threads $options " |
38
41
while IFS= read -r line
39
42
do
40
43
# rewrite address as hostname50
Original file line number Diff line number Diff line change @@ -142,8 +142,8 @@ unset PYTHONPATH
142
142
export PATH=" $PYENV_ROOT /bin:$PYENV_ROOT /shims:$PATH "
143
143
144
144
# install python packages
145
- PYTHON_PACKAGES=" check50==2.1.3 \
146
- cs50==2.3.1 \
145
+ PYTHON_PACKAGES=" check50==2.2.1 \
146
+ cs50==2.3.2 \
147
147
feedparser \
148
148
Flask \
149
149
Flask-JSGlue \
@@ -153,14 +153,15 @@ PYTHON_PACKAGES="check50==2.1.3 \
153
153
nltk \
154
154
passlib \
155
155
plotly \
156
- render50==2.1.1 \
156
+ render50==2.2.0 \
157
157
SQLAlchemy \
158
158
style50==2.3.3 \
159
- submit50==2.4.5 \
159
+ submit50==2.4.6 \
160
160
termcolor \
161
161
twython \
162
162
virtualenv"
163
- ( sudo -H pip3 install $PYTHON_PACKAGES )
163
+
164
+ sudo -H pip3 install $PYTHON_PACKAGES
164
165
/opt/pyenv/bin/pyenv rehash
165
166
166
167
echo " Installing nltk data..."
You can’t perform that action at this time.
0 commit comments