Rewrite phase 1.
Started improved client code structure. Implemented session based authentication serverside. Implemented user, match, and sport database models serverside. Implemented Controllers for variety of C and R operations of CRUD.
This commit is contained in:
17
sports-matcher/scripts/build.py
Normal file
17
sports-matcher/scripts/build.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python
|
||||
import os
|
||||
import shutil
|
||||
|
||||
DEST_DIR = os.path.abspath("../server/public/")
|
||||
BUILD_CMD = "react-scripts build"
|
||||
os.chdir(os.path.abspath(os.path.join(__file__, "../../client")))
|
||||
errorcode = os.system(BUILD_CMD)
|
||||
if (errorcode):
|
||||
print("There was an issue building the client via {}. See above log (exited with error code {}).".format(
|
||||
BUILD_CMD, errorcode))
|
||||
else:
|
||||
print("Received error code of 0. Proceeding with copying files to the public server directory.")
|
||||
|
||||
shutil.copytree("./build/", "../server/public/.", dirs_exist_ok=True)
|
||||
print("Completed copying built files to the public server directory \"{0}\".".format(
|
||||
DEST_DIR))
|
Reference in New Issue
Block a user