Get the Presentation's ID from the admin portal - and paste it into line 4 of this script.
The basic idea is that it will generate a zip file for your HTML presentation and upload it to Mobile Locker using
Save this script to your project's root directory as
deploy-prod.sh and make it executable. Review the code line-by-line first because you might need to adjust for your build environment.
#!/bin/bash source $HOME/.mobilelocker PRESENTATION_ID=[The presentation ID from the admin portal] API_URL="https://app.mobilelocker.com/api/presentations/$PRESENTATION_ID/upload" clear echo "PRESENTATION_ID: $PRESENTATION_ID" echo "API_URL: $API_URL" read -p "Press ENTER to continue." # If you're not using gulp to build your presentation, replace this with your build command gulp --production # zip everything in the "public" directory into "presentation.zip" rm -f presentation.zip cd public zip -r --exclude=.gitignore ../presentation.zip . cd ../ read -p "ZIP Complete. Press ENTER to upload." # Upload the zip file to Mobile Locker using your API TOKEN AUTH_HEADER="Authorization: Bearer $ML_API_TOKEN" curl \ --header "$AUTH_HEADER" \ --form [email protected] \ "$API_URL" echo "" echo "COMPLETE"
Now you can quickly upload your changes to Mobile Locker.
You'll receive a notification email as soon as the new version is ready.
You can also be notified by SMS if you add your mobile number to your profile.