I’ve just created a new Forest Cloud account. I have some customization to do and I cannot find any direction about how to run the cloud agent locally in order to introduce debug statements (exposing it via ngrok).
In the config, I only see one “production” environment and no button to add others.
Is it only possible?
Hello @jbescoyez,
Unfortunately, it’s not an option today. We have the idea of offering local development environment for the Cloud version of Forest Admin in the pipe but we didn’t commit on this yet.
It’s not possible yet. We will probably work on the remote environment in the Q4 of this year.
In the meanwhile, I invite you to create a new project and choose As a microservice and the DB you use.
This will allow you to develop locally and then push your code into the cloud projet (or use the self hosted version if you prefer).
Let me know if it helps.
Kind regards,
Morgan
Thanks. I managed to create a new account.
I am not sure to understand… In the agent documentation, it is clearly mentioned that:
The agent is a Node.JS REST API hosted on your servers
Can you tell me how I can host the code to the Forest cloud? That would be perfect.
Hello @jbescoyez,
Ok, it’s clearly not meant to be used like that. I shared your request to the product team maybe we will move forward faster that expected.
For your question, you will need to use @forestadmin/forest-cloud
CLI that allow you to interact with the cloud environment. And copy paste code from the local into the cloud projet for now…
Let me know if you understand how it works. I will get back to you if we commit into it.
Kind regards,
Morgan
Hello @jbescoyez,
I do have a great news !
We introduced the local development environment for our cloud offer.
You can find this screen in the customisation menu.
You might need to add those commands to your package.json
"start": "npm run build:node && forest-cloud start",
"dev": "npm run build:node && forest-cloud start",
"dev:watch": "nodemon --watch src/* -e js,ts --exec 'npm run dev'"
Kind regards,
Morgan
1 Like