Home>
I built a production environment with nginx, unicorn, rails6.
When accessing the page, the image of the slider created with slick.js is not displayed correctly
Specifically, it is a slider that slides a total of 5 images one by one.
The total number of images and Dots are 25 pieces of x5.
Probably because I changed the src of the img tag from the path specification to the specification by the asset_path method, I tried various things
I ’d like to give you some advice,
It is operating normally in the local environment.
Thank you.
<ul>
<li>"></li>
<li>"></li>
<li>"></li>
<li>"></li>
<li>"></li>
</ul>
application.js (slider part)
$(function () {
$('. slider'). slick ({
autoplay: true,
autoplaySpeed: 4000,
speed: 1000,
accessibility: true,
dots: true,
});
$('. slick-dots li'). on ('mouseover', function () {
$('. slider'). slick ('goTo', $(this) .index ());
});
});
-
Answer # 1
Related articles
- nginx - [production environment] how to read less log/productionlog when rails does not start properly
- django aws migration to production environment nginx error
- nginx - [ruby on rails] i want to display the url of an html file placed in a public directory without a file name
- ruby on rails - i can't log in to the app in the production environment (the app that was successfully deployed on heroku)
- ruby on rails - i want to be able to send emails from the rails production environment
- ruby on rails - [aws production environment] regarding http error 406
- ruby on rails - i want to display a list of liked data
- ruby on rails - [rails] about the display position after redirect by pressing like
- xcode - i want to display admob for production
- ruby on rails - i want to display activehash in the view file with the corresponding character instead of id
- ruby - the production environment settings do not work
- ruby on rails - i want to display the number of people in the group
- nginx - rails puma does not start with docker-compose up
- html - i'm stumbling on building a rails environment! help me! !! !!
- php - i get an http error 500 error only in a production environment
- bootstrap display in ruby on rails is broken
- ruby - rails pagination function i want to display in alphabetical order
- javascript - google map is not displayed in production environment
- ruby - i can't "rails db: create rails_env = production" on aws
- ruby on rails 6 - environment construction of ruby on rails
Related questions
- nginx - [production environment] how to read less log/productionlog when rails does not start properly
- ruby - http error 500 error occurred in aws deployment, but the cause cannot be determined
- nginx - bundler: failed to load command: unicorn cannot start with an error saying unicorn_rails
- Rails + PostgreSQL + NGINX ON DOCKER When building MacOS Chrome 502 BAD GATEWAY
- i want to resolve the error that nginx does not start
- ruby - aws deployment the asset "" is not present in the asset pipeline cannot be resolved
- ruby - resource: the server responded with a status of 404 () error
- ruby on rails - [aws production environment] regarding http error 406
- nginx - about session management in web application (cookie + session id)
- ruby on rails - error with automatic deployment by capistrano
It seems that a git conflict was happening, and all the unintegrated changes were displayed.
When the conflict is resolved, it is displayed correctly.