GithubHelp home page GithubHelp logo

gdiggs / rayons Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 7.07 MB

Personal Record Collection Catalog

Home Page: https://rayons.info

Ruby 96.83% JavaScript 0.44% HTML 0.98% Dockerfile 0.10% Makefile 0.03% SCSS 0.18% Sass 0.03% Haml 1.42%
rails ruby records dropbox

rayons's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

psbrandt

rayons's Issues

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "rails_serve_static_assets":
  In Gemfile:
    rails_12factor was resolved to 0.0.3, which depends on
      rails_serve_static_assets

Could not find gem 'rails_serve_static_assets', which is required by gem 'rails_12factor', in any of the sources.

Bundler could not find compatible versions for gem "rspec-mocks":
  In snapshot (Gemfile.lock):
    rspec-mocks (= 3.7.0)

  In Gemfile:
    rspec-mocks

    rspec-rails (>= 3.7.2, <= 3.8.1) was resolved to 3.8.1, which depends on
      rspec-mocks (~> 3.8.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Move to heroku

  • Create heroku app
  • Make heroku app build correctly for web
  • Set up clockwork
  • Move domain and SSL
  • Migrate database
  • Set up PG Backups
  • Set up memcached
  • Set up bugsnag
  • Set up skylight
  • Pipe monitoring to Slack
  • Spin down AWS resources
  • Remove docker building
  • Set up Dropbox backups
  • Fix revision

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "rails_serve_static_assets":
  In Gemfile:
    rails_12factor was resolved to 0.0.3, which depends on
      rails_serve_static_assets

Could not find gem 'rails_serve_static_assets', which is required by gem 'rails_12factor', in any of the sources.

Bundler could not find compatible versions for gem "rspec-mocks":
  In Gemfile:
    rspec-mocks (>= 3.7.0, <= 3.8.0)

    rspec-rails (~> 3.7.2) was resolved to 3.7.2, which depends on
      rspec-mocks (~> 3.7.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

New Stats

Add the following statistics:

  • Word cloud for title, artist, label, year using jqcloud
  • Average/Median/Max/Min price

Rendering is slow as all hell

Rubinius and puma brought ActiveRecord times down to a fraction of what they were, but rendering the partials is still super slow (and will continue to worsen). One strategy is to remove the 2 link_to calls in the partial, but there should also be some caching going on.

Move all stats to use own controller

There should be a StatsController that handles the current ItemsController actions:

  • ItemsController#stats should become StatsController#index
  • ItemsController#time_machine should change to /stats/time_machine
  • ItemsController#words_for_field should change to /stats/words_for_field

The cache paths also need to change in expire_pages.

Improve Discoverability

  • Fill in missing Discogs URLs
  • Add field for genre / Import genre on discogs import
  • Backfill genres
  • Stats view of genre breakdown
  • Page to get random by genre, year range, and format

Move to client-side rendering

Plan:

  • Mustache template for items with logic for authenticated
  • Move items finding to json items index, load that after pageload (need to update table and count in bottom, as well as return pagination information)
  • Cache that json response instead of the html table

Deploy to Heroku Failing

Trying to deploy to Heroku and the build process is failing:

! Failed to install gems via Bundler.
!

! Push rejected, failed to compile Multipack app

Would be happy to help troubleshoot further.

Weird error sometimes

This randomly starts happening. Restarting the app fixes it.

2014-04-24T13:29:43.909978+00:00 app[web.1]: [f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0] Started GET "/" for 50.112.95.211 at 2014-04-24 13:29:43 +0000
2014-04-24T13:29:43.914868+00:00 app[web.1]: [f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0] Processing by ItemsController#index as */*
2014-04-24T13:29:43.940113+00:00 app[web.1]: unknown OID: max_id(1114) (SELECT MAX("items"."updated_at") AS max_id FROM "items")
2014-04-24T13:29:43.943667+00:00 app[web.1]: [f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0] Read fragment views/items_markup3/2014/false//69323cd1188a67f28ee2477546db7f8d (2.6ms)
2014-04-24T13:29:43.950392+00:00 app[web.1]: unknown OID: title(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.950578+00:00 app[web.1]: unknown OID: artist(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.950712+00:00 app[web.1]: unknown OID: label(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.950862+00:00 app[web.1]: unknown OID: format(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.950992+00:00 app[web.1]: unknown OID: condition(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.951146+00:00 app[web.1]: unknown OID: price_paid(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.951319+00:00 app[web.1]: unknown OID: created_at(1114) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.951459+00:00 app[web.1]: unknown OID: updated_at(1114) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.951849+00:00 app[web.1]: unknown OID: color(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.952181+00:00 app[web.1]: unknown OID: deleted(16) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.952364+00:00 app[web.1]: unknown OID: discogs_url(25) (SELECT  "items".* FROM "items"  WHERE "items"."deleted" = 'f'  ORDER BY artist ASC,title ASC,year ASC,label ASC,format ASC LIMIT 100 OFFSET 0)
2014-04-24T13:29:43.968147+00:00 app[web.1]: [f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0]   Rendered items/_item.html.haml (7.5ms)
2014-04-24T13:29:43.970103+00:00 app[web.1]: [f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0]   Rendered items/index.html.haml within layouts/application (40.2ms)
2014-04-24T13:29:43.970748+00:00 app[web.1]: [f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0] Completed 500 Internal Server Error in 56ms
2014-04-24T13:29:43.981033+00:00 app[web.1]: [f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0] 
2014-04-24T13:29:43.981033+00:00 app[web.1]: ActionView::Template::Error (undefined method `strftime' on an instance of String.):
2014-04-24T13:29:43.981033+00:00 app[web.1]:     10:   %td.discogs_url
2014-04-24T13:29:43.981033+00:00 app[web.1]:     11:     - if item.discogs_url.present?
2014-04-24T13:29:43.981033+00:00 app[web.1]:     12:       %a{ :href => item.discogs_url, :target => '_blank' } link
2014-04-24T13:29:43.981033+00:00 app[web.1]:     13:   %td.added_on= item.created_at.strftime('%m.%d.%y')
2014-04-24T13:29:43.981033+00:00 app[web.1]:     14:   %td.edit<
2014-04-24T13:29:43.981033+00:00 app[web.1]:     15:     %a{ :href => item_path(item) }> s
2014-04-24T13:29:43.981033+00:00 app[web.1]:     16:     - if policy(item).edit?
2014-04-24T13:29:43.981033+00:00 app[web.1]:   app/views/items/_item.html.haml:13:in `_app_views_items__item_html_haml__1706984534975569517_1924748'
2014-04-24T13:29:43.981268+00:00 app[web.1]:   app/views/items/index.html.haml:26:in `_app_views_items_index_html_haml__349914767207701439_250368'
2014-04-24T13:29:43.981268+00:00 app[web.1]:   app/views/items/index.html.haml:25:in `_app_views_items_index_html_haml__349914767207701439_250368'
2014-04-24T13:29:43.981268+00:00 app[web.1]:   app/controllers/items_controller.rb:18:in `index'
2014-04-24T13:29:43.981268+00:00 app[web.1]: 
2014-04-24T13:29:43.981268+00:00 app[web.1]: 
2014-04-24T13:29:43.986742+00:00 heroku[router]: at=info method=GET path=/ host=x-vinyl.herokuapp.com request_id=f0cc535e-4a01-4168-a4bc-8c3d71e0c2d0 fwd="50.112.95.211" dyno=web.1 connect=1ms service=79ms status=500 bytes=838

How to init the admin user?

I got the app to spin up after adding the required .env keys.

How to initialize the admin user in order to login via the homepage?

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "rails_serve_static_assets":
  In Gemfile:
    rails_12factor was resolved to 0.0.3, which depends on
      rails_serve_static_assets

Could not find gem 'rails_serve_static_assets', which is required by gem 'rails_12factor', in any of the sources.

Bundler could not find compatible versions for gem "rspec-mocks":
  In Gemfile:
    rspec-mocks (>= 3.7.0, <= 3.8.0)

    rspec-rails (~> 3.7.2) was resolved to 3.7.2, which depends on
      rspec-mocks (~> 3.7.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Add list functionality

Want to be able to make playlists. Should be able to add from individual pages and index. Also random playlist generator.

Missing .env file

Cool project! I'm new to ruby and rails, and a collector so want to dig under the hood and deploy locally.

Cloning and running make dev gives this error:

rayons/.env: no such file or directory
make: *** [dev] Error 14

I assume app.json details what's needed in .env?
It might be useful to include a sample.env.

Rewrite

  • Rebuild backend as rails-api
  • Rebuild frontend using React/Redux

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "rails_serve_static_assets":
  In Gemfile:
    rails_12factor was resolved to 0.0.3, which depends on
      rails_serve_static_assets

Could not find gem 'rails_serve_static_assets', which is required by gem 'rails_12factor', in any of the sources.

Bundler could not find compatible versions for gem "rspec-mocks":
  In snapshot (Gemfile.lock):
    rspec-mocks (= 3.7.0)

  In Gemfile:
    rspec-mocks

    rspec-rails (>= 3.7.2, <= 3.8.1) was resolved to 3.8.1, which depends on
      rspec-mocks (~> 3.8.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

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.