Deployment of RhinoCompute

Hi there,

I have deployed the app server and Computerhino3d on the AWS virtual machine. I have verified this with Hops. I have some doubts about deploying the app server. Can I host it on Hostinger hosting? If yes, please provide instructions on how to do that. Please look into this.

Appserver can be hosted in any environment that supports node.js. We use Heroku as we have experience with that. Here is a doc from the appserver repo: compute.rhino3d.appserver/docs/heroku.md at main · mcneel/compute.rhino3d.appserver · GitHub

We have no experience with Hostinger, so cannot help you there. If it supports running node.js apps, then it should work.

I asked their AI chatbot if they support node.js apps:

I have been researching VPS hosting options and came across Render Hosting. However, I am facing an issue with setting up environmental variables for the hosting. In the video tutorials, the process is shown using Heroku CLI, but I am wondering how to set environmental variables without using the CLI. I am considering creating a separate ENV file for this purpose. Can you please provide guidance on where to create this file within the APPSERVER folder and the syntax or format required for it? This is important, so I would appreciate your assistance with this matter.

I would suggest to not have en ENV type file. Heroku provides an interface for adding variables on the project page. I can imagine other services also have such an interface.

I managed to host the app server with AWS and Heroku. The home page is working fine, but I’m unable to access the view page. It’s showing an error. I’ve also attached a screenshot of my local working model to show you that it’s working fine locally. link:- https://frontappserver-0f18315dc8ca.herokuapp.com/ , https://frontappserver-0f18315dc8ca.herokuapp.com/view



the endpoint is /view, so your last screenshot that is looking for /views will now work. Still, you should get list of definitions when hitting the /view endpoint. What happens if you remove your gh definitions from the server, and push that version? Can you get to the /view endpoint?

I have tried using the view endpoint but it’s still not working. Can you tell me how to access the server? I removed the definition from the local and tried hitting the homepage URL, but it’s still showing all the definition names. I think this is not removing files from the server. Am I right? Can you tell me how I can access the server and perform these tasks?

You remove the file locally and then push the changes to heroku. This restarts the service and should clear out any cached information.

okay what is the command to push the changes to heroku and command for restarting service

Please refer to the heroku documentation.



After removing definitions from the local server now its not working not even the homepage so what i have to do now ?

After removing, I added the definition again in the server, but now there’s a “fetch failed” message. Please look into this; it’s very important

With this information it is really not possible to help you. Have you set up the environment variables? Do the logs from heroku tell you anything useful?

I recommend going through the heroku docs and learning how to deploy an application there. Also learn about how git works. Start with a tutorial, get something working, and then move on to the base AppServer code, with no modifications. Once that is uploaded and working, then make modifications and push.

I have added the environment variables on Heroku as you showed in the tutorial. I will now try to host the app-server without making any modifications on Heroku. If it works, I will then proceed to push some modifications to it.

Hi Luis,

As per our previous conversation, I hosted the app server without any modification and checked the Heroku logs. The app server is running fine locally, but not on Heroku. Upon checking the Heroku logs as you suggested, it’s showing a timeout and a type error of failed fetch. I have attached screenshots of the logs, local and Heroku. Do system specifications like RAM






(heroku and AWS) and other factors matter in this case?

@fraguada can you please look into this.

@fraguada @nathanletwory I hope you’re doing well. It’s been a little over three days since we submitted our issue, and we were wondering if there’s been any progress. We’d really appreciate it if you could take a moment to check on it and provide us with an update.