(with Compute Geometry server running on a Windows Server)
- You have an account on Heroku.
- You've downloaded and installed the Heroku CLI.
- If you haven't already done so, open up a terminal, clone this repository, and navigate to the resulting directory:
$ git clone https://github.com/mcneel/compute.rhino3d.appserver.git
$ cd compute.rhino3d.appserver
- From the terminal, login to Heroku:
$ heroku login
- From the terminal, create the Heroku application (you can specify a name here, otherwise heroku will assign a name to your app):
$ heroku create myappname
You will see that your app was created and has a domain and a git repository:
Creating myappname... done
https://myappname.herokuapp.com | https://git.heroku.com/myappname.git
- Add configuration variables.
(This step can also be completed via the Heroku dashboard)
- From the terminal, set the
RHINO_COMPUTE_URL
variable. The VALUE of this should be the address to the server running compute. Ensure this address ends in a/
.
$ heroku config:set RHINO_COMPUTE_URL=http://your-compute-server-address/
- From the terminal, set the
RHINO_COMPUTE_KEY
variable. The VALUE of this should be the API Key set for the server running compute.
$ heroku config:set RHINO_COMPUTE_KEY=SOME_API_KEY
- From the terminal, set the
- Push the code to Heroku:
$ git push heroku main
- Finally, open the application. You should see your browser write some json formated information about the definitions.
$ heroku open
- Check out the example at https://myappname.herokuapp.com/example/
- Navigate in a browser to your Heroku dashboard. There you should see your new application. Click on your application name view it. You can view the logs by clicking on the
More
button and selectingView logs
.