Skip to content
Snippets Groups Projects
Commit 64fd232a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix on debian package build

parent 4ee4b380
No related branches found
No related tags found
1 merge request!290Frontend dependencies moved to npm
Pipeline #35217 passed
......@@ -28,6 +28,7 @@ echo "UPLOAD_ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)),'../
echo "SECRET_KEY ='tmp'" >> smash/local_settings.py
echo "STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'" >> smash/local_settings.py
npm install
export PYTHONDONTWRITEBYTECODE=1
./manage.py collectstatic
rm -rf node_modules
mv tmp-static/npm node_modules
......
......@@ -58,3 +58,4 @@ LOGGING = {
}
TWO_FACTOR_SMS_GATEWAY = "web.nexmo_gateway.Nexmo"
NPM_ROOT_PATH = '/usr/lib/smasch/'
......@@ -26,8 +26,8 @@ fi
echo "Installing python dependencies"
{
source /usr/lib/smasch/env/bin/activate && pip install -r --use-deprecated=legacy-resolver /usr/lib/smasch/requirements.txt --log $LOG_FILE
source /usr/lib/smasch/env/bin/activate && pip install -r --use-deprecated=legacy-resolver /usr/lib/smasch/requirements-dev.txt --log $LOG_FILE
source /usr/lib/smasch/env/bin/activate && pip install -r /usr/lib/smasch/requirements.txt --log $LOG_FILE
source /usr/lib/smasch/env/bin/activate && pip install -r /usr/lib/smasch/requirements-dev.txt --log $LOG_FILE
} || {
echo "There was an issue when installing python dependencies." >> $LOG_FILE
echo "There was an issue when installing python dependencies. Reinstall of smasch could help (in case you are upgrading smasch the data should not be lost in the process): "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment