Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update customize documentation #148

Open
igkuz opened this issue May 22, 2017 · 1 comment
Open

Update customize documentation #148

igkuz opened this issue May 22, 2017 · 1 comment

Comments

@igkuz
Copy link

igkuz commented May 22, 2017

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.

@olleolleolle
Copy link
Member

@igkuz Hi! Can you formulate a PR with the changes you would like to see?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants