Does anyone have pointers for hosting Pluto on a cloud-based server, such as Digital Ocean? I’m interested in a regular Pluto server for developing notebooks, but not interested in PlutoSliderServer.
Install julia on the server by ssh-ing into it and downloading the julia from the official website (with
wget for instance). Start a new julia project, install Pluto in it, and run it with:
Pluto.run(;host="0.0.0.0", port="1234"). Then point your browser to
Overriding the default listening address with
host="0.0.0.0" is important - otherwise only programs running on the same server can connect to Pluto. Saying “listen to 0.0.0.0” means “listen to all network interfaces, including those exposed to the dangerous internet”.
If you want a bit more security, you can tell Pluto to listen only to the local interface by deleting the
host argument (so that there are no public ports open) and then make a port fowarding tunnel to it from your local machine with
?Pluto.run for more information.
Edit2: Do not keep anything valuable on that server. Unless you set up https sertificates or ssh port forwarding, your connection is unencrypted and the password would be visible to anyone between you and the server.
Thank you, @Krastanov .