Title: Improved Redeploy System by MoonTM-GIT · Pull Request #330 · Java-Discord/JavaBot · GitHub
Open Graph Title: Improved Redeploy System by MoonTM-GIT · Pull Request #330 · Java-Discord/JavaBot
X Title: Improved Redeploy System by MoonTM-GIT · Pull Request #330 · Java-Discord/JavaBot
Description: This PR aims to improve the redeploy system a bit. This deprecates the method described in #195. This now requires a sh to be present at /bin/sh, in addition to an updated redeploy script to support all new features. This is the redeploy script we now use to re-compile the Bot: LOCATION="Location" #e.g /home/myUser/JavaBot cd $LOCATION rm -rf $LOCATION/redeploy/ git clone https://github.com/Java-Discord/JavaBot/ redeploy cd redeploy bash gradlew :shadow if [ $? -eq 0 ]; then rm $LOCATION/JavaBot.jar mv $LOCATION/redeploy/build/libs/JavaBot-1.0.0-SNAPSHOT-all.jar $LOCATION/JavaBot.jar else echo COMPILATION FAILED echo Did not replace file. fi As you can see this now only replaces the .jar if the compilation was successful. This is also used in the Bot to cancel the redeploy if the compilation did not succeed. The location of this script has to be set in the Systems config. E.g. "redeployScriptLocation": "/home/myUser/JavaBot/redeploy.sh", We still use a systemd service to run the bot, but we don't run this script before every start anymore, instead we only use this script for the /redeploy command. This allows us to restart the bot without waiting for it to compile again if we don't want that.
Open Graph Description: This PR aims to improve the redeploy system a bit. This deprecates the method described in #195. This now requires a sh to be present at /bin/sh, in addition to an updated redeploy script to suppor...
X Description: This PR aims to improve the redeploy system a bit. This deprecates the method described in #195. This now requires a sh to be present at /bin/sh, in addition to an updated redeploy script to suppor...
Opengraph URL: https://github.com/Java-Discord/JavaBot/pull/330
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:ef7d7d94-4b9f-7af5-fbe9-1e603e2bbe8c |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B56E:7E226:DC0D20:12476C1:69731F2D |
| html-safe-nonce | 71d674825625ad2e8fb8e3ffb430beba6ab495103cb320f552a063d151a256fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTZFOjdFMjI2OkRDMEQyMDoxMjQ3NkMxOjY5NzMxRjJEIiwidmlzaXRvcl9pZCI6Ijg3Nzg0NzUwNDIzNTkxNTY1MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c94216d668a5e2c07beb8c8937fecfe8924c9c7da55cdf90d47d70c0e680bcb2 |
| hovercard-subject-tag | pull_request:1008449095 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Java-Discord/JavaBot/pull/330/checks |
| twitter:image | https://avatars.githubusercontent.com/u/66334318?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66334318?s=400&v=4 |
| og:image:alt | This PR aims to improve the redeploy system a bit. This deprecates the method described in #195. This now requires a sh to be present at /bin/sh, in addition to an updated redeploy script to suppor... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/Java-Discord/JavaBot git https://github.com/Java-Discord/JavaBot.git |
| octolytics-dimension-user_id | 77415047 |
| octolytics-dimension-user_login | Java-Discord |
| octolytics-dimension-repository_id | 371822717 |
| octolytics-dimension-repository_nwo | Java-Discord/JavaBot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 371822717 |
| octolytics-dimension-repository_network_root_nwo | Java-Discord/JavaBot |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width