All Projects → khrj → repl.deploy

khrj / repl.deploy

Licence: MIT License
Automatically deploy from GitHub to Replit, lightning fast ⚡️

Programming Languages

rust
11053 projects
typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to repl.deploy

Automatic Release
Automates the release process for GitHub projects.
Stars: ✭ 46 (-26.98%)
Mutual labels:  deploy, automatic
Flubucore
A cross platform build and deployment automation system for building projects and executing deployment scripts using C# code.
Stars: ✭ 695 (+1003.17%)
Mutual labels:  deploy, continuous-deployment
action
A GitHub Action that deploys live environments for your pull requests and branches
Stars: ✭ 63 (+0%)
Mutual labels:  deploy, continuous-deployment
Rocket
Automated software delivery as fast and easy as possible 🚀
Stars: ✭ 217 (+244.44%)
Mutual labels:  deploy, continuous-deployment
AutoScrollTextView
android 上下滚动播放与走马灯效果结合
Stars: ✭ 27 (-57.14%)
Mutual labels:  automatic
LocalSupport
A directory of local support services and volunteer opportunities
Stars: ✭ 60 (-4.76%)
Mutual labels:  continuous-deployment
ModMail
Discord ModMail Bot
Stars: ✭ 44 (-30.16%)
Mutual labels:  replit
GitHub-Web-IDE
⚡ Open GitHub repositories in online web IDE
Stars: ✭ 242 (+284.13%)
Mutual labels:  replit
milvus-helm
The helm chart to deploy Milvus
Stars: ✭ 37 (-41.27%)
Mutual labels:  deploy
hookah
Deploying apps directly from a git push
Stars: ✭ 36 (-42.86%)
Mutual labels:  continuous-deployment
kuzgun
simple, ssh based deployment tool
Stars: ✭ 16 (-74.6%)
Mutual labels:  continuous-deployment
mailad
Software to provision a mail server with users from a Windows or Samba 4 Active Directory
Stars: ✭ 21 (-66.67%)
Mutual labels:  deploy
ReplAPI.it-NodeJS
[DEPRECIATED] 𝙀𝙫𝙚𝙧𝙮𝙩𝙝𝙞𝙣𝙜 𝙍𝙚𝙥𝙡𝙞𝙩, 𝙖𝙡𝙡 𝙖𝙩 𝙮𝙤𝙪𝙧 𝙙𝙞𝙨𝙥𝙤𝙨𝙖𝙡. This is the single most extensive Replit package, allowing you to access various parts of the site with just a few classes and methods. Maintained by @RayhanADev.
Stars: ✭ 32 (-49.21%)
Mutual labels:  replit
quill-magic-url
Automatically convert URLs to links in Quill
Stars: ✭ 86 (+36.51%)
Mutual labels:  automatic
wxauto
Windows版本微信客户端(非网页版)自动化,可实现简单的发送、接收微信消息,持续更新中
Stars: ✭ 72 (+14.29%)
Mutual labels:  automatic
aliyun-oss-deploy
🙈 一个 nodejs 命令行工具,用于部署静态资源到 aliyun oss,支持代码方式和 CLI 方式!
Stars: ✭ 31 (-50.79%)
Mutual labels:  deploy
jekyll-deploy-action
🪂 A Github Action to deploy the Jekyll site conveniently for GitHub Pages.
Stars: ✭ 162 (+157.14%)
Mutual labels:  deploy
bot
Completely free and open-source human-like Instagram bot. Powered by UIAutomator2 and compatible with basically any Android device 5.0+ that can run Instagram - real or emulated.
Stars: ✭ 321 (+409.52%)
Mutual labels:  automatic
safe-string-interpolation
A type driven approach to string interpolation, aiming at consistent, secure, and only-human-readable logs and console outputs !
Stars: ✭ 14 (-77.78%)
Mutual labels:  automatic
chroma-feedback
Turn your RGB powered hardware into a status indicator for continuous integration, continuous deployment and infrastructure monitoring
Stars: ✭ 106 (+68.25%)
Mutual labels:  continuous-deployment
blueprint illustration

repl.deploy

Automatically deploy from GitHub to Replit, lightning fast ⚡️

build language code size issues license version

repl.deploy - Automatically deploy from GitHub to Replit, lightning fast | Product Hunt




repl.deploy is split into

  • A GitHub app, which listens for code changes and sends events to your repl
  • A daemon, which runs on your repl, listens for events, fetches changes from GitHub and restarts your application

Table of Contents

Usage

  1. Authorize repl.deploy to get events from GitHub

  2. Make sure you have a main branch on your origin remote

  3. Add replit-deploy.json to your git repository with a single endpoint key, which is the address of your repl + /refresh. E.g.

{
    "endpoint": "https://my-amazing-application.my-username.repl.co/refresh"    
}
  1. Clone your git repository to your repl

  2. Download repl.deploy to the root of your repl -- Open the shell, and run

curl -sL https://repl-deploy.vercel.app/ -o repl.deploy
chmod +x ./repl.deploy

WARNING: Proceeding will overwrite any local changes and reset from your GitHub repo. Commit AND push any local changes BEFORE running repl.deploy

  1. For repls that do not use an HTTP server in their code (See example)

    • Create/modify the .replit file in the root of your repl and change run= to run ./repl.deploy --standalone <command to run your code here>. E.g.
    run="./repl.deploy --standalone node index.js"
    
  2. For repls that use an HTTP server in their code (See example)

    • Create/modify the .replit file in the root of your repl and change run= to run ./repl.deploy <command to run your code here>. E.g.
    run="./repl.deploy node index.js"
    
    • Set up the /refresh endpoint, and log a line in the following format to stdout when a request is recieved: repl.deploy<insert json body here (don't include the angle brackets)><insert "Signature" header here (don't include the angle brackets)>. E.g.
    repl.deploy{"timestamp":1615896087141,"endpoint":"https://8c051d0fbc4b.ngrok.io/refresh"}ostjM6/jGmHbRWcHazxKWSPmvgvoIryI9XxLgNKgxPCKRW==
    
    • Your application will recieve JSON via stdin. E.g.
    {"status":"403","body":"Invalid Signature"}
    

    simply respond with the given status and body (see example)

    • Once you've responded, log (to stdout)
    repl.deploy-success
    
  3. Click Run once. Make sure your repl is set to always-on or has a pinging service set up (otherwise, the daemon will be stopped by repl once you close your browser tab)

  4. That's it! Repl.it should automatically pull changes from GitHub the next time you commit

How?

  • When you commit, GitHub sends an event to a hosted instance of the repl.deploy server

  • A payload consisting of both the endpoint and the current time is prepared and signed with an RSA private key

  • The daemon running on the repl recieves the payload, and

    • Verifies the signature
    • Checks that the endpoint matches (this is to prevent someone from just forwarding a signed request to your repl and causing it to restart)
    • Checks that the timestamp is less than 15 seconds old (this is to prevent someone from abusing a signature in the event that a signed request is leaked by you)
  • If the request is valid, the daemon

    • runs git fetch --all and then git reset --hard origin/main
    • restarts your program

FAQ

  • Q: What does run="./repl.deploy --standalone node index.js" do?
    A: It makes the Replit Run button run the daemon instead of executing the program directly, which then executes/re-executes the program on git push

  • Q: Does repl.deploy need to be downloaded every time the program is run?
    A: No, repl.deploy only needs to be downloaded once per repl

  • Q: What's https://repl-deploy.vercel.app/?
    A: A hosted version of get-release-url, which saves you the time of manually finding the latest release and linking it.

Supporters

Stargazers repo roster for @khrj/repl.deploy

Forkers repo roster for @khrj/repl.deploy

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].