Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Charlie
@charlie_hsieh
Member
NO. 32110 / 2017-07-02

13 Topics / 120 Replies
9 Followers
0 Following
2 Favorites
Charlie
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Active Storage 的正确使用姿势 at June 24, 2020

    看起来 除非 master.key , credentials.yml.enc , secret_key_base,永远不变。 但是,似乎,难免会遇到需要修改 secret_key_base 的时候,就像是密码,怎么可能永久不变。这个时候,rich html 里面的 SGID 可能就坏了... 所有文章的图片附档,不就通通失效.....

  • rails 框架装不上 at May 26, 2020

    可能,我是 macbook pro 2015 所以感覺會耗電。

  • rails 框架装不上 at May 26, 2020

    抱歉,與主題無關。macos 10.15 不耗電嗎?

  • 求教 passenger 无法启动问题 at May 26, 2020

    passenger 沒有抓到 ruby 2.7 版本用的是 預設的 ruby 2.5

  • 新手求助 puma + nginx 跑 rails 成产环境出错 at February 25, 2020
    • 问题应该是档案目录权限不足,不要把 rails project 放在 /root 底下。因为 你的 nginx 执行的 user 是 "nginx" 不是 root。nginx 无法到你的 /root/new_car/shared/sockets/puma.sock 当然一直说读取不到。你看 nginx error.log 或者 /var/log/message (centos) 或者 /var/log/syslog (ubuntu) 应该可以看到权限不足的讯息

    • 解法
    ~ # mv /root/new_car /opt/new_car
    # cd /opt/new_car
    # puma
    # chmod 777 /opt/new_car/shared/sockets/puma.sock
    
    nginx config upstream ---> /opt/new_car/shared/sockets/puma.sock
    
    • 当然这是解决了 nginx , proxy pass 的问题,但 production 的话,应该会另外建立一个 user for puma server 才对,不太会用 root 执行 puma server

    • Hope this will help.
      • FYI
        • puma config
          • https://github.com/charlietag/os_preparation/blob/master/templates/F_02_PKG_06_ruby_09_redmine_create/user_home/web_sites/redmine/config/puma/production.rb
        • nginx config
          • https://github.com/charlietag/os_preparation/blob/master/helpers_views/helper_nginx_site_config/etc/nginx/rails_sites/sample-rails.conf
          • https://github.com/charlietag/os_preparation/blob/master/templates/F_02_PKG_02_nginx_02_setup_base/etc/nginx/rails_conf/rails_locations.conf
        • puma-mgr
          • https://github.com/charlietag/os_preparation/blob/master/templates/F_02_PKG_06_ruby_08_setup_systemd_puma/usr/local/bin/puma-mgr
        • Rails log rotated
          • https://github.com/charlietag/os_preparation/blob/master/templates/F_02_PKG_06_ruby_07_setup_rails_logrotate/etc/logrotate.d/rails
  • 别的生态下有 Turbolink 这类神奇的东西么 at January 31, 2020

    turbolinks 不限定 rails 使用。

  • ActionText 使用的 Trix 有没有办法 I18n at December 13, 2019

    https://github.com/spohlenz/tinymce-rails/blob/master/README.md

    how about this?

  • Redmine 還是一個好工具? at December 13, 2019

    请问,后来是被什么方案取代?

  • Redmine 還是一個好工具? at December 13, 2019

    我也认为,他还是很实用,就是操作流程比较繁琐,不够直觉。现在大多数开发者,似乎比较排斥。

  • PHP 7 安装日志 at December 12, 2019

    phpenv 之類的,但是,沒有比 rvm 實用。

  • PHP 7 安装日志 at December 10, 2019

    認同,但是,我 ruby 版本管理,倒是全仰賴 rvm + gemset。不使用 deb or rpm。感覺比較方便。

  • PHP 7 安装日志 at December 06, 2019

    @msg7086 其實也不能這麼說,現在,還有人願意花時間折騰 源碼編譯 應該是好事。你想想如果 Aaron 也不願意看 C 源碼 這類底層機制,ruby 3x3 就失去期待了。當然如果要賺錢養家,真的不能浪費時間!我想他會想源碼編譯在 CentOS6 應該是不想面對 systemd。我是都使用 yum webtatic repo 就是了,雖然沒有 remi 新。

    @Ghaker 因為怎麼樣看到 php 安裝教程分享,在 Ruby china 總覺得怪怪的… 沒有惡意。還是很佩服…

  • PHP 7 安装日志 at December 01, 2019

    我想應該是發錯社區了!

  • Basecamp Personal: limited, but free at November 14, 2019

    看到下面的相关话题了...2015 真的有出现过... 感觉确实一段时间就来一下免费的个人版.....

  • 看谷歌现在的所作所为,终于理解甲骨文了 at July 09, 2019

    @nouse 這是真的!雖然負能量偏高,但是製造的氛圍高低起伏,很刺激,會有種想繼續看下去的感覺…哈

  • bootstrap-sass 3.2.0.3 版本被发现藏有远程执行代码后门 at July 09, 2019

    @qiumaoyuan 這有點麻煩,因為通常剛入門 rails 都是為了不用自己造輪子,如果到最後回過頭來自己造輪子,感覺有點違背當初重複造輪子的議題。

  • 关于 logrotate日志切割多线程 Rails 程序时出现的日志记录消失问题,求教 at June 18, 2019

    之前沒看到這個參數,copytruncate,看起來是好參數!

  • 关于 logrotate日志切割多线程 Rails 程序时出现的日志记录消失问题,求教 at June 17, 2019

    host 多個 rails 網站的 log rotate 設定 https://github.com/charlietag/os_preparation/blob/master/templates/F_02_PKG_06_ruby_07_setup_rails_logrotate/etc/logrotate.d/rails

    /etc/logrotate.d/rails

    ${web_sites}/*/log/*.log {
      daily
      rotate 30
      compress
      missingok
      notifempty
      create 644 ${current_user} ${current_user}
      sharedscripts
      postrotate
        if [ -n "$1" ]; then
          PUMA_PID_FILES="$(readlink -m "$(dirname "$1")/../tmp/pids/puma.pid")"
          for PUMA_PID_FILE in $PUMA_PID_FILES; do
            if [ -s "$PUMA_PID_FILE" ]; then
              PUMA_PID=$(cat ${PUMA_PID_FILE} 2>/dev/null)
              #echo "$1"
              #echo "kill $PUMA_PID"
              kill -USR2 $PUMA_PID
              sleep 3
            fi
          done
        fi
      endscript
    }
    
  • 屏幕出问题了,不知道怎么搞成这样的,求最优维修方案。 at June 11, 2019

    可以拿去 Apple 碰運氣。

  • 屏幕出问题了,不知道怎么搞成这样的,求最优维修方案。 at June 09, 2019

    Apple Genius Bar

  • 屏幕出问题了,不知道怎么搞成这样的,求最优维修方案。 at June 09, 2019

    Macbook Pro retina,屏幕有鍍膜問題,擦拭容易脫膜,此情況可以免費更換一次。拿去天才吧,免費更換吧。

  • Ubuntu (16.04.10) 开机自启动脚步,/etc/rc.local 中命令不执行 at June 07, 2019

    試試看,chmod 755 /etc/rc.local

  • 一个人耗时 2 年,收集 3800 多万数据,创建了这个网站,看看对大家的国际化项目有没有帮助。 at May 13, 2019

    原來如此! 感謝! 省下一大筆軟件翻譯費!

  • 一个人耗时 2 年,收集 3800 多万数据,创建了这个网站,看看对大家的国际化项目有没有帮助。 at May 13, 2019

    請問可以翻譯整篇文章嗎?

  • 有没有类似《深入浅出 rails》这样比较有趣的 rails 入门书记,求推荐 at May 11, 2019

    期待中!!

  • 有没有类似《深入浅出 rails》这样比较有趣的 rails 入门书记,求推荐 at May 08, 2019

    https://railsbook.tw/

    只有繁體版本

  • 关于 execjs 的疑问 at May 22, 2018

    試試看,安裝 nodejs ??

  • CentOS 7 下 Nginx 安装使用 Let’ s Encrypt 证书的完整过程 at July 02, 2017

    好像在這邊對於 CentOS 使用的接受度相當高,感覺現在到處找到的文章都是 Ubuntu。

    很開心還能看到使用 CentOS 的使用者。

    我是自己寫的 bash 去 deploy SSL 不過我把它搞得有點複雜了。給各位批評指教。

    https://github.com/charlietag/os_preparation

    https://github.com/charlietag/os_security

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