緣起 我喜歡做 Rails app prototype 放在 Digital Ocean,Rails app A 5.2.0 已經部署在上面,最近想再部署其他小型 Rails app 到同一臺機器上,但發現部署其他小型 Rails app B 到相同正
read more緣起 我喜歡做 Rails app prototype 放在 Digital Ocean,Rails app A 5.2.0 已經部署在上面,最近想再部署其他小型 Rails app 到同一臺機器上,但發現部署其他小型 Rails app B 到相同正
read morePostgreSQL version 10 WAL 設定概述 參數: checkpoint_timeout default is 5 minute max_wal_size default is 1GB archive_timeout full_page_writes checkpoint_warning checkpoint_completion_target default is 0.5 and only be fraction of checkpoint_timeout pg_test_fsync can measure average speed in microsecond of single WAL flush operation. Half of its value is effective for reporting average time setting that it flush single 8KB write operation to commit_delay. pg_test_fsync doesn’t care whether fsync
read moreThis article is written for Rails beginners when he/she want to deploy an app. From my experience, many things must be noticed and fixed, whose range from Ubuntu, RVM, Apache, Passenger, Postgres, Git, Capistrano and GitHub.com. The following are indexes for problems, solutions and resources I had faced. It might evolve with times change. Ubuntu List packages you have installed to a machine. Command: dpkg -l | grep {packageFullnameorPartname} Change
read moreI use the gem pg_search in rails as a light-weight tool for full-text searching task of Postgres, but Postgres doesn’t support the function well in Mandarin/Chinese. After finding solutions, I take the combination of tools for full-text search in Postgres, which are pg_search gem, SCWS and zhparser. Doing it yourself according content in following links, you will setup successfully too. Remark at 20160131: This tutorial requires postgresql-server-devel-{VERSION} at Ubuntu and
read more