Skip to content

Commit

Permalink
feat: ✨ Update Unix build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobiClark committed Aug 8, 2023
1 parent 61ddec6 commit da50c08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 61 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/Build-and-deploy-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,7 @@ jobs:
run: |
npm run python-onefile-build-unix
- name: Test the python server executable
run: |
# Run the executable in the background
./pyflaskdist/app.exe 4242 > server_output.txt 2>&1 &
# Wait for the server to start
sleep 30
# Display the server output
cat server_output.txt
# Check the server output for the "Running on" line
if grep -q "Running on http://127.0.0.1:4242/" server_output.txt; then
echo "Server started successfully."
else
echo "Error: Server failed to start."
# You can perform additional error handling or cleanup here if needed
# For example, you may want to exit the workflow with an error code
exit 1
fi
# Clean up the temporary output file
rm server_output.txt
- name: Deploy the application
- name: Deploy the app to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down
28 changes: 3 additions & 25 deletions .github/workflows/Build-and-deploy-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,32 +48,10 @@ jobs:
run: |
npm run python-onefile-build-unix
- name: Test the python server executable
run: |
# Run the executable in the background
./pyflaskdist/app.exe 4242 > server_output.txt 2>&1 &
# Wait for the server to start
sleep 30
# Display the server output
cat server_output.txt
# Check the server output for the "Running on" line
if grep -q "Running on http://127.0.0.1:4242/" server_output.txt; then
echo "Server started successfully."
else
echo "Error: Server failed to start."
# You can perform additional error handling or cleanup here if needed
# For example, you may want to exit the workflow with an error code
exit 1
fi
# Clean up the temporary output file
rm server_output.txt
- name: Deploy the application
- name: Deploy the app to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
appleId: ${{ secrets.APPLE_ID }}
appleIdPassword: ${{ secrets.APPLE_PASSWORD }}
run: |
npm run deploy-mac
11 changes: 0 additions & 11 deletions pyflask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@
from namespaces import configure_namespaces
from flask_restx import Resource
import sys
try:
import ssl
print("ssl version: ", ssl.OPENSSL_VERSION)
print("SSL:")
print(ssl)
# print the path that ssl is using
print("ssl module file: ", ssl.__file__)
# print everything about ssl
print("ssl module: ", ssl.__dict__)
except ImportError as e:
print("Failed to import ssl module: ", e)

configure_namespaces()

Expand Down

0 comments on commit da50c08

Please sign in to comment.