Skip to content

Commit 45e1e49

Browse files
authored
wger: fix python and pip install (#8295)
1 parent bda3f22 commit 45e1e49

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ct/wger.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,18 @@ function update_script() {
3939
tar xzf "$temp_file"
4040
cp -rf wger-"$RELEASE"/* /home/wger/src
4141
cd /home/wger/src || exit
42+
$STD pip install -r requirements_prod.txt --ignore-installed
43+
$STD pip install -e .
4244
$STD python3 manage.py migrate
45+
$STD python3 manage.py collectstatic --no-input
4346
$STD yarn install
4447
$STD yarn build:css:sass
45-
$STD python3 manage.py collectstatic --noinput
4648
echo "${RELEASE}" >/opt/${APP}_version.txt
4749
msg_ok "Updated $APP to v${RELEASE}"
4850

49-
msg_info "Starting $APP"
51+
msg_info "Starting Service"
5052
systemctl start wger
51-
msg_ok "Started $APP"
53+
msg_ok "Started Service"
5254

5355
msg_info "Cleaning Up"
5456
rm -rf "$temp_file"

install/wger-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.
4242
tar xzf "$RELEASE".tar.gz
4343
mv wger-"$RELEASE" /home/wger/src
4444
cd /home/wger/src || exit
45-
$STD pip install -r requirements_prod.txt
45+
$STD pip install -r requirements_prod.txt --ignore-installed
4646
$STD pip install -e .
4747
$STD wger create-settings --database-path /home/wger/db/database.sqlite
4848
sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py

0 commit comments

Comments
 (0)