Skip to content

Update customize documentation #148

@igkuz

Description

@igkuz

It's not clear how to customize the gemstash server. Tried to use it with mysql2 adapter and it took time to read the sources and understand how to get them together.

~/.gemstash/config.yml

:db_adapter: mysql2$
:db_url: {}$
:db_connection_options:$
  :adapter: mysql2$
  :host: localhost$
  :port: 3306$
  :user: <db_user>$
  :password: <db_password>$
  :database: <db_name>$

I had to explictly use adapter config key in db_connection_options as it was processed by Sequel.connect() function.
Also Sequel with mysql2 rewrites user to username during handling the connection options.

bundle exec gemstash setup

not working with mysql2 as there is no way to configure connection string. Maybe I'm wrong and just don't know how to do it, but still it's pretty unclear and a working example will be a great help.

You have to add gem "mysql2" to your Gemfile, while there is no word in README that it's not a dependency.

Speaking about customization, it would be great to have an example of nginx/apache/varnish configuration as a reverse proxy/caching solution for handling requests. All of them can cache successful responses from gemstash server.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions