Skip to content

Commit

Permalink
change order of run-dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
dxenes1 committed Oct 7, 2022
1 parent d3f0bfe commit a491fe6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions neuvue_project/run-dev-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

import subprocess

# Get recent migrations to database
subprocess.run(['python3', 'manage.py', 'migrate'])

# Collect static files
subprocess.run(['python3', 'manage.py', 'collectstatic', '--no-input'])

# Turn debug mode on in settings.py
with open('neuvue/settings.py', 'r') as f:
settings = f.read()
Expand All @@ -16,5 +10,11 @@
with open('neuvue/settings.py', 'w') as f:
f.write(settings)

# Get recent migrations to database
subprocess.run(['python3', 'manage.py', 'migrate'])

# Collect static files
subprocess.run(['python3', 'manage.py', 'collectstatic', '--no-input'])

# Run Dev server on localhost
subprocess.run(['python3', 'manage.py', 'runserver', 'localhost:8000'])

0 comments on commit a491fe6

Please sign in to comment.