Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    G. Gibson
    @mistergibson
    Sure, thanks --> I'll try that. With Unicorn I plan on using multiple workers so a shared memory solution is greatly desired. I tried the config option above and of course had the same shared-memory-write-copy issue with the workers' memory. However, Redis might just be the ticket on this issue. I just need something (I don't really care about mutex bottle-necks) shared as-one-state between all workers.
    Uncle Google yields surprisingly little on the subject of Padrino+Redis. Got any tutorial / config-examples URLs?
    G. Gibson
    @mistergibson
    What do you think of this? https://github.com/airbnb/hammerspace
    G. Gibson
    @mistergibson
    OK - so I'm using built-in Padrino.cache with a Redis backend and Unicorn workers. Is there some special incantation for the workers to connect to redis?
    G. Gibson
    @mistergibson
    I seem to recall some after_fork hooley about Padrino.cache.reconnect (or similar) ... ?
    Milad Rezazadeh
    @milianoo
    just got latest stable version but even padrino g project cool does not work.
    padrinobot
    @padrinobot
    MotherMGA Is it possible to do an internal redirect in padrino?
    padrinobot
    @padrinobot
    travis-ci padrino/padrino-framework#2507 (master - fa2cfcc : namusyaka): The build passed.
    G. Gibson
    @mistergibson
    Anyone know how to detect if your app is loading under the 'console' and not loading for serving up pages?
    G. Gibson
    @mistergibson
    Odd thing - hope someone has insights: I'm using puma with a bind directive in config/puma/development.rb ... I put output to the logger that it is loading so I know it is loading. However, it still binds to 127.0.0.1:3000 instead of what I told it to bind to. Anyone have any ideas?
    G. Gibson
    @mistergibson
    Got it sorted -- it's all in the wrist evidently
    Still not sure how to detect if I'm running padrino console, or padrino start
    Any tips appreciated
    Marcelo
    @MarcPer
    you can check __FILE__ variable, which should be (irb) (or (pry))
    G. Gibson
    @mistergibson
    @MarcPer : thanks -- I'll try that :)
    G. Gibson
    @mistergibson
    Oh well, that didn't work -- good try though
    note, the code in question is running in config/apps.rb
    Marcelo
    @MarcPer
    I think I understand better now. What is the value of $0in the scope you want? Maybe it can tell you how it was called.
    G. Gibson
    @mistergibson
    it just gives me the path to bin/padrino
    there doesn't seem to be any special something that gets set during console
    maybe the presence of the IRB module? that's all I can think of
    padrinobot
    @padrinobot
    MotherMGA Does padrino have a method for doing an internal redirect, or passing execution to a different controller/action?
    MotherMGA Does padrino have a method for doing an internal redirect, or passing execution to a different controller/action?
    padrinobot
    @padrinobot
    wikimatze Hi MotherMGA, a simple redirect https://www.rubydoc.info/github/padrino/padrino-framework/Padrino%2FFlash%2FHelpers:redirect is not enough for you?
    wikimatze Hi MotherMGA, a simple redirect https://www.rubydoc.info/github/padrino/padrino-framework/Padrino%2FFlash%2FHelpers:redirect is not enough for you?
    padrinobot
    @padrinobot
    wikimatze Our what do you have in mind?
    padrinobot
    @padrinobot
    MotherMGA I was wanting to just interrupt execution and run an action of different controller, but I ended up using a redirect.
    wikimatze Glad you've used the "easy" solution for this problem.
    padrinobot
    @padrinobot
    renich Hello. When creating a model with the generator, is there a way to declare relations while using sequel as ROM?
    renich I meant ORM
    padrinobot
    @padrinobot
    wikimatze Hi @reinich, there is no such feature actually, it needs to be implemented.
    stefano
    @SHyZe
    Hello, my problem is when I Deploy my site on my host the/admin link works but my link to posts for non Admin user puts me NOT FOUND can you help me? thank you in advance
    Matthias G√ľnther
    @wikimatze_twitter
    Hi @SHyZe are you using the link_to method with the correct links? Is the route somehow protected? Which version of Padrino are you using?
    G. Gibson
    @mistergibson
    Question: how to I handle routes from behind a proxy server?
    is there a tutorial on this?
    so: if I set apache to put the app-site at /foo/ and proxy/reverse-proxy ... what does that mean to my padrino internals?
    padrinobot
    @padrinobot
    MotherMGA Pretty much the only thing that matters is the host configuration if you are, for some reason generating absolute URLs with url_for or you're using a custom <base> tag in your html. By default, url_for generates just the path, so the browser will link the target to whatever domain you're requesting from.
    shashank
    @shashankn91
    How to upgrade a padrino ruby project ruby version. Any tutorial or pointers ?
    padrinobot
    @padrinobot
    cincy_kal is there a way to auto run a command after rake db:migrate?
    cincy_kal I need to generate a Sequel schema cache after running migrations
    Jorge Fuertes
    @jorgefuertes
    Hi, please, is Padrino supporting ruby 2.6? What's the newer ruby version can I use safely? Ty
    Could not find gem 'bundler (~> 1.0)', which is required by gem 'padrino-gen (= 0.14.4)', in any of the sources.
    Its this dependency real?
    Jorge Fuertes
    @jorgefuertes
    Dependencies and bugs are braking projects evolution, I still need the rack utils patch to the bytesize method, for example. We need to review all to really support a clean ruby 2.6 instalation.
    Jorge Fuertes
    @jorgefuertes
    Trying now with ruby 2.4.6 and bundler 1.17.3, maybe the farthest as I can go. It should be noted in every release notes and in docs, if I'm not wrong. Honestly I prefer to be wrong right now. Thanks for reading.
    Wout
    @wout
    Are there any plans to support ROM as an ORM?
    Florian Gilcher
    @skade
    Hi, haven't been here for a while :). Quick questions: what license is the padrino.com website under? It doesn't declare one. I'm currently searching for a nice template for a project website, and the padrino one is great.