Created
July 28, 2025 21:23
-
-
Save sskirby/69d80a8a94ea249324c32513b39f37bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ABOUTME: Cursor environment startup script that starts Docker service and switches to docker group | |
# ABOUTME: Ensures all subsequent processes run with docker group permissions | |
set -euo pipefail | |
# Start Docker service (equivalent to current start command) | |
sudo service docker start --add-host=cursor:127.0.0.1 | |
# Wait a moment for Docker service to be fully ready | |
sleep 2 | |
echo "Docker service started" | |
sudo docker compose -f docker/docker-compose.yml up --wait pm_postgres pm_redis | |
echo "PostgreSQL is ready" | |
bundle exec rails db:setup | |
echo "DBs should be running and setup" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment