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
2024-08-26 07:58:10 +09:00
..
build-pgroonga.sh added method for running firefish on macOS (dev/macos/README.md, dev/macos/build-pgroonga.sh, dev/macos/install.sh, dev/macos/start-postgres.sh, dev/macos/start-redis.sh) 2024-08-26 07:58:10 +09:00
install.sh added method for running firefish on macOS (dev/macos/README.md, dev/macos/build-pgroonga.sh, dev/macos/install.sh, dev/macos/start-postgres.sh, dev/macos/start-redis.sh) 2024-08-26 07:58:10 +09:00
README.md added method for running firefish on macOS (dev/macos/README.md, dev/macos/build-pgroonga.sh, dev/macos/install.sh, dev/macos/start-postgres.sh, dev/macos/start-redis.sh) 2024-08-26 07:58:10 +09:00
start-postgres.sh added method for running firefish on macOS (dev/macos/README.md, dev/macos/build-pgroonga.sh, dev/macos/install.sh, dev/macos/start-postgres.sh, dev/macos/start-redis.sh) 2024-08-26 07:58:10 +09:00
start-redis.sh added method for running firefish on macOS (dev/macos/README.md, dev/macos/build-pgroonga.sh, dev/macos/install.sh, dev/macos/start-postgres.sh, dev/macos/start-redis.sh) 2024-08-26 07:58:10 +09:00

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;