Dev option to test http endpoints before publishing the app

Is there a dev option to test http endpoints before publishing the app, something similar to the -DEV suffix on the uplink key?

2 Likes

Did you get your answer Stefano?
I’m interested as well.

Thanks

No answer.

When I need to test endpoints on low traffic apps I just un-publish the app, so the endpoints always run on the latest code.

When I can’t un-publish to avoid side effects on production traffic, I clone the app and test on the clone.

1 Like

I’m afraid there isn’t an officially supported way to do this yet – it’s slightly tricky to expose development applications (which might have half-baked features that would be dangerous to expose to the general public) in a safe way, but it’s on our list! I’ve moved it to Feature Requests.

Another solution is to clone your app and use one for dev and one for prod. Do all your development on dev and then publish and test endpoints. When everything works use git to push dev version to prod version.

To set up:

  1. clone development app from anvil version page (git clone GIT_URL_DEV dev_app)
  2. enter dev repository
  3. git remote add prod GIT_URL_PROD (copy from anvil clone page)
  4. when everything works on dev, from inside dev repo: git pull
  5. git push prod —force
  6. go to prod app in IDE and fix the things that the push overwrote: ReConnect users data table, update dependencies to point to production dependencies