Git Product home page Git Product logo

Comments (7)

ConradIrwin avatar ConradIrwin commented on July 30, 2024

It's postgres because I currently host it on Heroku (which has the best postgres support). Feel free to send a patch that uses MySQL in a different Gemfile group with some kind of config option (it shouldn't be too hard to make it work, as we're not using any big features of the DB).

Maybe we should just use Mongo ;).

from showterm.io.

brandon-dacrib avatar brandon-dacrib commented on July 30, 2024

mongo IS a good attribute/value key store db. I am a terrible developer but I will certainly take a look.

from showterm.io.

asharpe avatar asharpe commented on July 30, 2024

sqlite can be used by replacing

gem 'pg'

with

gem 'sqlite3'

in the Gemfile and construct a config/database.yml to match, ala

development:
  adapter: sqlite3
  database: db/development.sqlite3
  pool: 5
  timeout: 5000

test:
  adapter: sqlite3
  database: db/test.sqlite3
  pool: 5
  timeout: 5000

production:
  adapter: sqlite3
  database: db/production.sqlite3
  pool: 5
  timeout: 5000

I'm using this without issue thus far.

from showterm.io.

brandon-dacrib avatar brandon-dacrib commented on July 30, 2024

Awesome. Thank you.

from showterm.io.

didier13150 avatar didier13150 commented on July 30, 2024

Work fine with MySQL too

Replace

gem 'pg'

with

gem 'mysql2'

And adapt config/database.yml like this

production:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: showterm
  pool: 10
  username: ******
  password: "************"
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: showterm_development
  pool: 5
  username: ******
  password: "************"
test:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: showterm_test
  pool: 5
  username: ******
  password: "************"

from showterm.io.

ConradIrwin avatar ConradIrwin commented on July 30, 2024

Great! Could you please send a pull request to add docs to the bottom of the README?

from showterm.io.

didier13150 avatar didier13150 commented on July 30, 2024

done.

from showterm.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.