This repository has been archived on 2025-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
puyoskey-firefish/dev/macos/README.md

945 B

macOS installation methods

  • install redis and postgresql
./install.sh
  • build pgroonga
./build-pgroonga.sh
  • start redis and postgresql
./start-postgres.sh

# and
./start-redis.sh
  • setup detabase
  • create db and user
psql -d postgres -U $USER
-- Create a new PostgreSQL user named 'firefish' with encrypted password.
-- This user will not have superuser, createdb, or createrole privileges.
CREATE USER firefish WITH ENCRYPTED PASSWORD 'password' SUPERUSER NOCREATEDB NOCREATEROLE;

-- Create a new database named 'firefish_db' with UTF8 encoding and owned by the 'firefish' user.
CREATE DATABASE firefish_db WITH ENCODING 'UTF8' OWNER firefish;

  • enable pgroonga extension
# enter this command then type password
psql -U firefish -d firefish_db -W
-- This ensures the PGroonga extension is enabled for the database.
CREATE EXTENSION pgroonga;