Skip to content

Commit

Permalink
remove shebang and turn into shell commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dxenes1 committed Jan 5, 2023
1 parent 35f0a9d commit b5c5333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion neuvue_project/deps/neuvue-client
Submodule neuvue-client updated 1 files
+3 −1 README.md
8 changes: 3 additions & 5 deletions neuvue_project/run-dev-server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/python3

import subprocess

# Turn debug mode on in settings.py
Expand All @@ -11,10 +9,10 @@
f.write(settings)

# Get recent migrations to database
subprocess.run(["python3", "manage.py", "migrate"])
subprocess.run(["python3", "manage.py", "migrate"], shell=True)

# Collect static files
subprocess.run(["python3", "manage.py", "collectstatic", "--no-input"])
subprocess.run(["python3", "manage.py", "collectstatic", "--no-input"], shell=True)

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

0 comments on commit b5c5333

Please sign in to comment.