Configure the Heroku Command Line Interface (CLI) using these steps: Heroku CLI.
Deploy the Standard File server to your account using this deploy link: https://heroku.com/deploy?template=https://github.com/standardfile/ruby-server.
Install a MySQL addon. Here we'll use the JawsDB addon: https://elements.heroku.com/addons/jawsdb. If you already have a database, you can skip this step.
After installing JawsDB, choose it from the addons list in your Heroku dashboard. This will take you to your JawsDB dashboard. You'll need the information found here for the next step.
In your Heroku application, choose the "Settings" tab.
In the "Config Variables" section, click "Reveal Config Variables".
Add 4 new variables:
||Use the "Host" value from your JawsDB dashboard.|
||In your JawsDB dashboard, you should see at the top "Connection String". Copy the part after "3306/". That will be the name of your database.|
||Use the "Username" value.|
||Use the "Password" value.|
Restart your Heroku instance using either the web interface (you'll find this option under "More" in the top right) or using the command line:
heroku restart --app name_of_app
Perform initial database setup:
heroku run rake db:migrate --app name_of_app
And that's it! You're up and running with a free Standard File server that you can use in Standard Notes.
Note that you should understand the limitations of Heroku's free tier. In particular, your instance will sleep after 30 minutes of idleness, and may take several seconds to start up again on subsequent requests.