Skip to content

Commit

Permalink
migrations studd
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed May 30, 2019
1 parent 8c4513f commit b6b1bb9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 31 deletions.
2 changes: 1 addition & 1 deletion __version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.3
0.2.4
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 2.2 on 2019-05-30 19:08
# Generated by Django 2.2 on 2019-05-30 21:45

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -19,7 +19,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='firmwareupload',
name='product',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='products.Product'),
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='products.Product'),
),
migrations.AlterUniqueTogether(
name='firmwareupload',
Expand Down
19 changes: 0 additions & 19 deletions firmware_uploads/migrations/0004_auto_20190530_2129.py

This file was deleted.

12 changes: 3 additions & 9 deletions runserver.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
echo "downloading app.zip ..."
wget -qO app.zip "https://github.com/pycampers/firmware-release-server/releases/download/$(cat __version__ )/app.zip"

echo "unzipping ..."
unzip -q app.zip -d app

ls -la

cd app

echo "nginx"
Expand All @@ -16,9 +14,5 @@ python manage.py migrate
echo "$ python manage.py collectstatic --noinput"
python manage.py collectstatic --noinput

ls -la

ls -la bin

echo "$ ./bin/gunicorn --bind=unix:/home/firmware_release_server.sock firmware_release_server.wsgi"
./gunicorn --bind=unix:/home/firmware_release_server.sock firmware_release_server.wsgi
echo "$ python bin/gunicorn --bind=unix:/home/firmware_release_server.sock firmware_release_server.wsgi"
python bin/gunicorn --bind=unix:/home/firmware_release_server.sock firmware_release_server.wsgi

0 comments on commit b6b1bb9

Please sign in to comment.