How to deploy local MySQL database to Heroku

后端 未结 3 1489
挽巷
挽巷 2020-11-29 20:30

I\'m new to using Heroku and I have a Ruby/Sinatra app in which I plan on using a MySQL database as the main data store.

However, I do not want to write results dir

3条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 20:48

    I know nothing about Ruby & Sinatra, so feel free to comment and let me know how wrong I am if that's the case. However, I thought it might be pertinent to mention the JawsDB Plugin on Heroku, as the top answer here is from 2013 and may be a bit outdated.

    Here is a link with info on the JawsDB plugin: https://devcenter.heroku.com/articles/jawsdb

    Provisioning the plugin is as simple as running the following command in the CLI:

    heroku addons:create jawsdb
    

    Then configure the host, username, password, & database with parameters from MySQL Workbench (or whatever GUI you use).

提交回复
热议问题