Giter VIP home page Giter VIP logo

Comments (3)

adrienpoly avatar adrienpoly commented on June 15, 2024

Turbolinks shouldn’t be an issue with Stimulus

Do you see your console log ‘entering picker’

I am not very familiar with Capistrano, I deploy mostly with Heroku. If you take this app and try to deploy it with Cap does it work?

One thing that I remember from a rare deploy with Cap does your server has node installed? Webpacker require node to build the assets. Or do you build them locally before deploying?

from rails_stimulus_flatpickr.

salex avatar salex commented on June 15, 2024

Yes I see the 'entering picker', never the 'got a picker' in production. The server does have node, but I ruled out Capistrono.

I ran the app on my laptop in production with

RAILS_ENV=production bin/rails assets:precompile
RAILS_SERVE_STATIC_FILES=true bin/rails s -e production

Same problem. I created a new issue on webpacker and referenced flatpickr. It's one of the two and pretty sure it's webpacker, but have no idea what it could be.

Thanks for responding

from rails_stimulus_flatpickr.

salex avatar salex commented on June 15, 2024

Just a little update.

I could not get stimulus-flatpicker to work consitantly in deploying to a staging server so I added a comment to a web packer issue rails/webpacker#2552 (comment)

I don't see anything in your documentation mentions anything about how flatpickr css get added to the assets.complile action or that you have to add a stylesheet_pack_tag. I fixed it, but don't know why it would work in one application and not another.

Whoops, I forgot that stimulus_flatpicker is used in other applications, not just rails so you would not necessarily add rails specific documentation

from rails_stimulus_flatpickr.

Related Issues (2)

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.