Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
苑畅
@yuanchang
Member
NO. 34289 / 2018-02-04

759337828@qq.com
1 Topics / 11 Replies
0 Followers
8 Following
2 Favorites
自由职业,终身学习.
GitHub Public Repos
  • rubyc-web 1

  • great-open-source-project 0

    收集整理Github、Gitte上优秀的开源项目。

  • react-ts-demo 0

  • rubyyc.github.io 0

    blog

  • my-blog-2024 0

  • css-clock 0

  • camera-electron 0

  • wallpaper 0

  • vitepress 0

    Vite & Vue powered static site generator.

  • tank-ts 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Rails 6.0 详细介绍切换 Assets Pipeline 到 Webpacker at May 22, 2021

    Rails6 项目中 bootstrap 引入问题

    # yarn安装bootstrap
    yarn add bootstrap
    
    # application.js引入
    import 'bootstrap/dist/js/bootstrap';
    import "bootstrap/dist/css/bootstrap";
    
    

    编写页面,bootstrap 布局能正常显示

    但当我 git push && cap production deploy 成功后

    生产环境下 bootstrap 不能正常显示

    cap production deploy 控制台和浏览器控制台均没有报错信息


    于是我把 👆 的引入代码分开

    # application.js
    import 'bootstrap/dist/js/bootstrap';
    
    # application.scss
    @import "bootstrap/dist/css/bootstrap";
    

    开发环境与生产环境都能正常运行


    请问第一次引入为什么生产环境不能正常使用?是不是还需要进行 Rails 相关的配置或者 webpacker 配置?

  • [求助] Capistrano Rails 6.0 ,yarn install 到 [4/4] Building fresh packages... 这一步总是很慢 at May 21, 2021

    一样,每次 cap production deploy 就这个地方耗时最长

  • RubyConf China 2021 Hotwire 讲师征集 at May 17, 2021

    纪念品或者书籍可以支持一波😆 😆

  • [深圳] 至简天成旗下 ShowMeBug 招聘 Ruby on Rails 全栈工程师&增长黑客工程师共 2 名 at September 23, 2020

    请问远程全职可以么?😂 😂

  • [深圳] 至简天成旗下 ShowMeBug 产品招聘 Ruby 全栈工程师一名 at February 18, 2020

    看来是直接用的 Rails6 开发的啊👍 👍

  • [远程] FeedMob 诚招 开发工程师 at December 03, 2019

    看你们每个月都在招人啊😂 😂

  • 在 Mac 下部署 Nginx + Passenger + Rails 访问出错 at December 02, 2019

    试试

  • 请求帮助,我按照教程在 ubuntu14.04 上安装 ngnix + passenger,出现了包依赖错误,请大佬帮我看看。 at November 25, 2019

    亲测,ubuntu18.04 运行 sudo apt-get install -y nginx-extras passenger ,会出现 libperl 版本不支持安装啥的,建议使用 ubuntu16.04

  • apt-get install nginx-extras passenger 在处理时有错误发生 at November 25, 2019

    建议用 ubuntu16.04,这样就没有错误了

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English