Repls typically go to sleep after a period of inactivity. To make sure that your repl is restarted, you can use our Always-on functionality.
Note that this function is currently only available on our Hacker plan.
Always-on is controlled by a toggle inside your repl. To enable it:
After Always-on is enabled, you will see a green indicator next to your repl's name:
That's it! We will run your repl whenever it goes to sleep.
Repls ordinarily do not run unless someone presses the "Run" button or if the repl receives HTTP traffic. Always-on runs your repl when neither of those occur. When running your repl, Always-on will install packages and respect your Run button configuration.
Always-on does not extend your repl's lifetime. All repls are subject to go to sleep at any time. Always-on will, however, immediately run your repl again whenever this happens. If your process exits on its own, Always-on will not restart it. We recommend using Database to persist information outside of your process.