Skip to content

Commit

Permalink
check for requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
leftyfb committed Apr 13, 2024
1 parent 9bdc37a commit 6700b22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ Features:
- viewable on mobile
- refreshes the data automatically without having to refresh the whole page (30 seconds)
- server-side caching of the data so as not to overwhelm the Octoprint API's (1 minute)

Requirements:
- php
- git (for deployment script)
- curl (for deployment script)
- jq (for deployment script)
6 changes: 6 additions & 0 deletions deploy-staging.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

if command -v curl &> /dev/null && command -v git &> /dev/null && command -v jq &> /dev/null; then
echo "ok"
else
echo "Missing dependencies"
fi

staging_dir="/var/www/staging"
repo_owner=lowellmakes
repo_name=3dprinterstatus
Expand Down

0 comments on commit 6700b22

Please sign in to comment.