Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
苑畅
@yuanchang
会员
第 34289 位会员 / 2018-02-04

[email protected]
1 篇帖子 / 11 条回帖
0 关注者
8 正在关注
2 收藏
自由职业,终身学习.
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Rails 6.0 详细介绍切换 Assets Pipeline 到 Webpacker at 2021年05月22日

    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 2021年05月21日

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

  • RubyConf China 2021 Hotwire 讲师征集 at 2021年05月17日

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

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

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

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

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

  • [远程] FeedMob 诚招 开发工程师 at 2019年12月03日

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

  • 在 Mac 下部署 Nginx + Passenger + Rails 访问出错 at 2019年12月02日

    试试

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

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

  • apt-get install nginx-extras passenger 在处理时有错误发生 at 2019年11月25日

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

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