René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:60f32b36-efa9-0df5-a4ef-e58ab3b1334e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9296:5EAB0:DD74FA:12381E9:6971797F
html-safe-nonce68f9de5645b94ed842957cdc8768dc6a7d3387a0cefb8da19456eab851f0fb5b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjk2OjVFQUIwOkRENzRGQToxMjM4MUU5OjY5NzE3OTdGIiwidmlzaXRvcl9pZCI6IjYwNzcwNjU5MTAyNTU5NzQ3ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd92cee7091ee3478438e96ec5c9630cb153ed90488132ec494bfa816668b425d
hovercard-subject-tagpull_request:1008449095
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Java-Discord/JavaBot/pull/330/files
twitter:imagehttps://avatars.githubusercontent.com/u/66334318?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/66334318?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None102ab681b33bed6a87d35dc54dd8200470d7e01648f08979e84415ab67d611aa
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Java-Discord/JavaBot git https://github.com/Java-Discord/JavaBot.git
octolytics-dimension-user_id77415047
octolytics-dimension-user_loginJava-Discord
octolytics-dimension-repository_id371822717
octolytics-dimension-repository_nwoJava-Discord/JavaBot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id371822717
octolytics-dimension-repository_network_root_nwoJava-Discord/JavaBot
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6a660b76f271bda19afb9f5242b473bfee637a5a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Java-Discord/JavaBot/pull/330/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJava-Discord%2FJavaBot%2Fpull%2F330%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJava-Discord%2FJavaBot%2Fpull%2F330%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Java-Discord%2FJavaBot
Reloadhttps://github.com/Java-Discord/JavaBot/pull/330/files
Reloadhttps://github.com/Java-Discord/JavaBot/pull/330/files
Reloadhttps://github.com/Java-Discord/JavaBot/pull/330/files
Java-Discord https://github.com/Java-Discord
JavaBothttps://github.com/Java-Discord/JavaBot
Notifications https://github.com/login?return_to=%2FJava-Discord%2FJavaBot
Fork 24 https://github.com/login?return_to=%2FJava-Discord%2FJavaBot
Star 50 https://github.com/login?return_to=%2FJava-Discord%2FJavaBot
Code https://github.com/Java-Discord/JavaBot
Issues 14 https://github.com/Java-Discord/JavaBot/issues
Pull requests 1 https://github.com/Java-Discord/JavaBot/pulls
Discussions https://github.com/Java-Discord/JavaBot/discussions
Actions https://github.com/Java-Discord/JavaBot/actions
Projects 1 https://github.com/Java-Discord/JavaBot/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/Java-Discord/JavaBot/security
Please reload this pagehttps://github.com/Java-Discord/JavaBot/pull/330/files
Insights https://github.com/Java-Discord/JavaBot/pulse
Code https://github.com/Java-Discord/JavaBot
Issues https://github.com/Java-Discord/JavaBot/issues
Pull requests https://github.com/Java-Discord/JavaBot/pulls
Discussions https://github.com/Java-Discord/JavaBot/discussions
Actions https://github.com/Java-Discord/JavaBot/actions
Projects https://github.com/Java-Discord/JavaBot/projects
Security https://github.com/Java-Discord/JavaBot/security
Insights https://github.com/Java-Discord/JavaBot/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FJava-Discord%2FJavaBot%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJava-Discord%2FJavaBot%2Fissues%2Fnew%2Fchoose
MoonTM-GIThttps://github.com/MoonTM-GIT
mainhttps://github.com/Java-Discord/JavaBot/tree/main
moon/redeployhttps://github.com/Java-Discord/JavaBot/tree/moon/redeploy
Conversation 8 https://github.com/Java-Discord/JavaBot/pull/330
Commits 9 https://github.com/Java-Discord/JavaBot/pull/330/commits
Checks 0 https://github.com/Java-Discord/JavaBot/pull/330/checks
Files changed https://github.com/Java-Discord/JavaBot/pull/330/files
Please reload this pagehttps://github.com/Java-Discord/JavaBot/pull/330/files
Improved Redeploy System https://github.com/Java-Discord/JavaBot/pull/330/files#top
Show all changes 9 commits https://github.com/Java-Discord/JavaBot/pull/330/files
bc99346 Imrpoved Redeploy System MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/bc9934647892e9ff902688924f2c2312e7d4a946
dabdb31 Merge branch 'main' into moon/redeploy MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/dabdb31fc41d4c6e6be66a6bedad9d0f5e5866ff
48e8481 Update RedeployCommand MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/48e8481cd37e184e39886aa2d223770fa406fbfc
62364c9 Fix checkstyle MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/62364c9ef0a04a7d56b3a90b0d4d4d1f4c93e445
8d1e376 Added JDA#shutdown MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/8d1e376aaec4e634109f10db5d1c81dfcb84aee5
6507aa8 Updated javadoc MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/6507aa8468b2bc17340e951067d49e8baab2dee8
2d0b215 Fix checkstyle MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/2d0b215b8436cf9b6a95be5f41f63a52a7317981
49eda39 Added link to #330 to SystemsConfig MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/49eda3908001792b27dc16edf14b26a67c1006c4
431646f Removed extra dot MoonTM-GIT Jul 26, 2022 https://github.com/Java-Discord/JavaBot/pull/330/commits/431646fe4d596f3d769c6499a4c28cf34e1bccfc
Clear filters https://github.com/Java-Discord/JavaBot/pull/330/files
Please reload this pagehttps://github.com/Java-Discord/JavaBot/pull/330/files
Please reload this pagehttps://github.com/Java-Discord/JavaBot/pull/330/files
SystemsConfig.java https://github.com/Java-Discord/JavaBot/pull/330/files#diff-a6e0f9295de7a67a5ef8f279d5112cf15d3bfff4683b8373b6b9d9cabc7d8aa8
RedeployCommand.java https://github.com/Java-Discord/JavaBot/pull/330/files#diff-467f8a85bb8c379084c65e7f94aa4ff960e75d0e493e580c2ddc873c3b31cad9
https://github.com/Java-Discord/JavaBot/blob/main/.github/CODEOWNERS#L2
src/main/java/net/javadiscord/javabot/data/config/SystemsConfig.javahttps://github.com/Java-Discord/JavaBot/pull/330/files#diff-a6e0f9295de7a67a5ef8f279d5112cf15d3bfff4683b8373b6b9d9cabc7d8aa8
View file https://github.com/Java-Discord/JavaBot/blob/431646fe4d596f3d769c6499a4c28cf34e1bccfc/src/main/java/net/javadiscord/javabot/data/config/SystemsConfig.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Java-Discord/JavaBot/pull/330/{{ revealButtonHref }}
https://github.com/Java-Discord/JavaBot/pull/330/files#diff-a6e0f9295de7a67a5ef8f279d5112cf15d3bfff4683b8373b6b9d9cabc7d8aa8
https://github.com/Java-Discord/JavaBot/pull/330/files#diff-a6e0f9295de7a67a5ef8f279d5112cf15d3bfff4683b8373b6b9d9cabc7d8aa8
https://github.com/Java-Discord/JavaBot/blob/main/.github/CODEOWNERS#L2
src/main/java/net/javadiscord/javabot/systems/staff_commands/RedeployCommand.javahttps://github.com/Java-Discord/JavaBot/pull/330/files#diff-467f8a85bb8c379084c65e7f94aa4ff960e75d0e493e580c2ddc873c3b31cad9
View file https://github.com/Java-Discord/JavaBot/blob/431646fe4d596f3d769c6499a4c28cf34e1bccfc/src/main/java/net/javadiscord/javabot/systems/staff_commands/RedeployCommand.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Java-Discord/JavaBot/pull/330/{{ revealButtonHref }}
https://github.com/Java-Discord/JavaBot/pull/330/files#diff-467f8a85bb8c379084c65e7f94aa4ff960e75d0e493e580c2ddc873c3b31cad9
https://github.com/Java-Discord/JavaBot/pull/330/files#diff-467f8a85bb8c379084c65e7f94aa4ff960e75d0e493e580c2ddc873c3b31cad9
danthe1sthttps://github.com/danthe1st
Jul 30, 2022https://github.com/Java-Discord/JavaBot/pull/330/files#r933782921
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/Java-Discord/JavaBot/pull/330/files
MoonTM-GIThttps://github.com/MoonTM-GIT
Aug 3, 2022https://github.com/Java-Discord/JavaBot/pull/330/files#r936717018
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/Java-Discord/JavaBot/pull/330/files
danthe1sthttps://github.com/danthe1st
Jul 30, 2022https://github.com/Java-Discord/JavaBot/pull/330/files#r933782850
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/Java-Discord/JavaBot/pull/330/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.