-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f7fdb8
commit 00bff69
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
fastapi | ||
langchain==0.0.131 | ||
langchain==0.0.141 | ||
openai | ||
sqlalchemy | ||
pyjwt[crypto] | ||
jinja2 | ||
langflow==0.0.54 | ||
black | ||
passlib | ||
pymysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# This script builds the project and copies the resulting ./dist folder to the server | ||
|
||
# check if working in root directory, both client and server folders should be present | ||
if [ ! -d "client" ] || [ ! -d "server" ]; then | ||
echo "Please run this script from the root directory of the Repo" | ||
exit 1 | ||
fi | ||
|
||
# build the project | ||
# Go into the client folder and build the project using yarn | ||
cd client | ||
yarn build | ||
|
||
# Go back to the root directory | ||
cd .. | ||
|
||
# copy the dist folder to the server | ||
# Go into the server folder, remove the old static folder and copy the new dist folder, copy index.html to templates | ||
cd server | ||
rm -rf static | ||
cp -r ../client/dist static | ||
cp ../client/dist/index.html templates | ||
|
||
# Go back to the root directory | ||
cd .. | ||
|
||
# Done | ||
echo "Done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters