PostgreSQL のインストールをやっているのだけど、いまいちよく分からない……
https://wiki.postgresql.org/wiki/Apt
ただ、公式のここ ( https://wiki.postgresql.org/wiki/Apt ) にも書かれている通り postgresql-10 等バージョンを指定しておかないと 11 が正式リリースされた際にアップグレード対象になってしまうため注意が必要?
テスト鯖 ( Ubuntu 16.04 ) の PostgreSQL を Ubuntu 公式リポジトリの 9.5 から PostgreSQL 公式の 10.5 にアップグレードしました。
PostgreSQL 公式を参考 ( https://wiki.postgresql.org/wiki/Apt ) に公式リポジトリを追加して、
丼鯖止めて pg_dump して、apt remove postgresql* して apt update && apt install postgresql postgresql-contrib して、
設定ファイル書き直して ( ポート番号も違う ) systemctl restart postgresql して status 見て生きてるの確認して、Mastodon Production Guide 参考にユーザー追加して、
RAILS_ENV=production SAFETY_ASSURED=1 bundle exec rails db:setup して、db_dump をリストアして、念のためもう一度再起動させてから動かしました。
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.