Deploying Bokeh apps to DigitalOcean
Setting up the server account
Create account on DigitalOcean with Credit Card or PayPal
Create $5 monthly droplet and check email for droplet credentials
Login to the server with ssh on Linux/Mac and putty on Windows passing the IP and port 22
Enter root for username and the password received via email
The server will ask to change the password. Do so.
You should be logged in now.
Connect to DigitalOcean using ssh
Go to the server root directory with
Install required software and packages
sudo apt-get update
sudo apt-get install python3-pip
pip3 install bokeh virtualenv
Create a new directory for the virtual environment
Create a virtual environment with virtualenv
virtualenv /opt/envs/virtual
Activate the virtual environment
. /opt/envs/virtual/bin/activate
Upload your local app files
Connect to the remote system using sftp
Transferring Local Files to the Remote System
bokeh serve --show bokeh_streaming_example.py --allow-websocket-origin=" *"