Back

Function hot reload python with open runtime

  • 1
  • Functions
bluesky
23 Sep, 2023, 01:37

I was trying to to deveop function with openruntime. And how to make it seamless for development mode?

I was trying to change example main.py, and nothing change with API.

Restart docker, or docker compose up with —build parameter nothing effect.

TL;DR
The user is asking for a way to achieve hot reload for Python functions in an open runtime. They have tried various methods like restarting Docker and using the `--build` parameter in `docker-compose up`, but nothing has had any effect.
Drake
23 Sep, 2023, 02:26

For now, the easiest thing to do is to deploy the updated code

bluesky
23 Sep, 2023, 02:27

Deployed to Appwrite?

Drake
23 Sep, 2023, 02:30

Yes... technically you can use an open runtimes image to run a container but you'll have to build and then start as the docs describe

Drake
23 Sep, 2023, 02:30

Honestly, it's best to just deploy to an Appwrite instance

bluesky
23 Sep, 2023, 02:31

What is the fastest way to deploy? CLI?

Drake
23 Sep, 2023, 02:32

Possibly yes. I'd probably use the CLI

Drake
23 Sep, 2023, 02:32

(appwrite deploy function)

bluesky
23 Sep, 2023, 02:33

Okayy, thank's @Steven . But in the future, is the team would make it easier for development instead of testing must deploy?

Drake
23 Sep, 2023, 02:34

Probably

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more