Command Cheat Sheet
β¨οΈ Command Cheat Sheet
Section titled ββ¨οΈ Command Cheat SheetβQuick-access commands for the Mobayilo development environment.
π Rails Development
Section titled βπ Rails DevelopmentβRun these in order to get the local server up with the correct assets:
- Build Assets:
pnpm build - Build CSS:
bin/rails tailwindcss:build - Start Server (Port 3100):
rails s -p 3100
π Tunneling & Webhooks
Section titled βπ Tunneling & WebhooksβEssential for testing external integrations locally.
- Start Tunnel:
ngrok http 3100
- Listen for Webhooks:
stripe listen --forward-to https://mobayilo.com/api/webhooks/stripe - Trigger Specific Event:
stripe trigger checkout.session.completed
π Infrastructure & CI/CD
Section titled βπ Infrastructure & CI/CDβManaging our Railway environment and GitHub Actions.
- Railway Status:
railway status - Check CI Blocking (Main):
gh run list --branch main --limit 20
π Git & Version Control
Section titled βπ Git & Version Controlβ- Enhanced Status:
git status-all - Clean Branch:
git remote prune origin
π Postgres Database
Section titled βπ Postgres Databaseβ- Interactive Console:
rails dbconsoleorpsql -d mobayilo_development - Reset Database:
bin/rails db:drop db:create db:migrate - Seed Data:
bin/rails db:seed
Note: If you find a new useful command, please add it here to help the rest of the team!