Online Commerce for Ruby on Rails
Run Spree Quickstart.
- After cloning the your Spree starter template, edit the
docker-compose.yaml
file to use thepostgres:15
Docker image. - Follow steps for building and running the application.
- Seed the database with data.
-
- Run YugabyteDB in Docker:
docker run -d --name yugabyte -p7000:7000 -p9000:9000 -p15433:15433 -p5433:5433 -p9042:9042 --network db_migration_network \
yugabytedb/yugabyte:2024.1.1.0-b137 bin/yugabyted start \
--background=false \
--enable_pg_parity_tech_preview
- Execute offline migration.
- Verify schema and data parity between PostgreSQL and YugabyteDB.
- Edit
database.yml
file in your Spree project to connect to YugabyteDB.
...
username: yugabyte
password: yugabyte
host: localhost
port: 5433
- Re-run the application.