Giter VIP home page Giter VIP logo

Comments (9)

klausmeyer avatar klausmeyer commented on May 30, 2024 1

No that double bundle exec is not necessary :) It's simply a mistake in the README.
I'll fix that - thanks for pointing me to it 😁

I think there is another issue in the README which should be also the reason for the issue you're having here with the listen gem:

The command shown is intended to run the app in production mode (that's why there is a bundle install --without development there - but it's missing a very important part: The command should include the RAILS_ENV=production setting.

Can you try this one please?:

RAILS_ENV=production SECRET_KEY_BASE=changeme DOCKER_REGISTRY_URL=https://example.com PORT=8080 bundle exec bundle exec puma -C config/puma.rb

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 30, 2024 1

Sure. Will do that in this PR: #237

There is still stuff missing. You'll need to run this command once:

RAILS_ENV=production rails assets:precompile

And change the command to start the app to:

RAILS_SERVE_STATIC_FILES=true RAILS_ENV=production SECRET_KEY_BASE=changeme DOCKER_REGISTRY_URL=https://example.com PORT=8080 bundle exec bundle exec puma -C config/puma.rb

Will also add that to the PR.

from docker-registry-browser.

hboetes avatar hboetes commented on May 30, 2024 1

Oh yes, I can do that.

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 30, 2024

Hi @hboetes,

that's interesting. I don't get this error in development mode and it looks like if the listen gem should be there since it's a dependency of spring-watcher-listen so I'm really wondering what is wrong.

Can you give me some details about your setup please?

  • Which OS?
  • How do you install ruby (rbenv / rvm or another way)?
  • When do you get that error? During starting the dev server with bundle exec rails s?

Thanks, Klaus

from docker-registry-browser.

hboetes avatar hboetes commented on May 30, 2024

Hello @klausmeyer
Thanks for your time and effort

  • Ubuntu bionic
  • rvm
  • RAILS_RELATIVE_URL_ROOT=/browser ENABLE_DELETE_IMAGES=true DOCKER_REGISTRY_URL=https://example.com PORT=8080 bundle exec bundle exec puma -C config/puma.rb

Another question is the double bundle exec bundle exec necesarry? It seems to work without it as wel..

from docker-registry-browser.

hboetes avatar hboetes commented on May 30, 2024

That fixed that issue but results in We're sorry, but something went wrong. and the below output in the production logfile.

I, [2019-10-10T18:44:42.591989 #21792]  INFO -- : [9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] Started GET "//" for 127.0.0.1 at 2019-10-10 18:44:42 +0200
I, [2019-10-10T18:44:42.592853 #21792]  INFO -- : [9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] Processing by RepositoriesController#index as HTML
I, [2019-10-10T18:44:42.783388 #21792]  INFO -- : [9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]   Rendering repositories/index.html.erb within layouts/application
I, [2019-10-10T18:44:42.783787 #21792]  INFO -- : [9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]   Rendered repositories/index.html.erb within layouts/application (Duration: 0.3ms | Allocations: 497)
I, [2019-10-10T18:44:42.783954 #21792]  INFO -- : [9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] Completed 500 Internal Server Error in 191ms (Allocations: 2219)
F, [2019-10-10T18:44:42.784656 #21792] FATAL -- : [9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]   
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] ActionView::Template::Error (The asset "icons/namespace.png" is not present in the asset pipeline.):
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]      5:       <% Hash[@repositories.group_by(&:namespace).sort].each do |namespace, repos| %>
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]      6:         <div class="card border-docker mb-5">
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]      7:           <%= content_tag :div, class: "card-header", id: "namespace-#{namespace}" do %>
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]      8:             <%= image_tag "icons/namespace.png", size: "50x50", align: "right" %>
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]      9: 
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]     10:             <span class="text-muted small">Namespace</span>
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]     11:             <h5 class="card-title mb-0"><%= namespace.presence || "/" %></h5>
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019]   
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] app/views/repositories/index.html.erb:8
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] app/views/repositories/index.html.erb:7
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] app/views/repositories/index.html.erb:5:in `each'
[9f45d8f0-d5bb-4a49-b4d6-efcd2b640019] app/views/repositories/index.html.erb:5

from docker-registry-browser.

hboetes avatar hboetes commented on May 30, 2024

Now we're on it, perhaps you should also add those variables to the big table?

from docker-registry-browser.

hboetes avatar hboetes commented on May 30, 2024

Great, now it's ~working, on to the next problem. :-D

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 30, 2024

Ok, but we can close this one then, right?

from docker-registry-browser.

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.