Skip to content

Conversation

Siddhant-K-code
Copy link
Contributor

@Siddhant-K-code Siddhant-K-code commented Sep 21, 2025

Migration from Gitpod Classic to Ona

This PR migrates the RedwoodJS GraphQL repository from Gitpod Classic to Ona. As announced in Gitpod is now Ona.

What's changed

Configuration migration

  • Replaced .gitpod.yml with modern Dev Container configuration (.devcontainer/devcontainer.json)
  • Added Ona Automations configuration (.ona/automations.yaml) for services and tasks
  • Updated documentation from using-gitpod.md to using-ona.md

🔧 Technical details

Environment Configuration

  • Base image: mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye
  • Node.js version: 20.x with corepack enabled
  • Port forwarding: 8910 (Web), 8911 (API) with HTTPS protocol
  • Persistent volumes: Yarn cache and node_modules for faster rebuilds

Automation Tasks

  • setup-environment: Automatic setup on environment start
  • start-dev-after-setup: Auto-start development server after setup
  • sync-framework-changes: Manual framework synchronization
  • open-ports/close-ports/list-ports: Port management
  • start-dev-server/stop-dev-server/restart-dev-server: Service control

Development Workflow

  1. Environment starts → Dev Container initializes
  2. Setup task runs → Installs framework dependencies and creates test project
  3. Ports open automatically → Development servers accessible via HTTPS
  4. Service starts → RedwoodJS development server ready for use
  5. Framework changes sync → Use sync task to update test project

Documentation

Updated documentation includes:

Try it below

Run in Ona

- Replace .gitpod.yml with Dev Container configuration
- Add automations.yaml for services and tasks
- Implement proper timing coordination between setup and service start
- Move setup logic from postStartCommand to automated task
- Add dependency coordination using completion markers
- Maintain auto-start behavior with proper sequencing
- Fix hanging setup task by removing blocking service start call
- Add separate task for auto-starting service after setup completion
- Simplify service configuration and remove problematic readiness checks
- Add port management with HTTPS protocol for dashboard visibility
- Include manual port control tasks (open/close/list ports)
- Ensure ports 8910 (Web) and 8911 (API) are accessible via HTTPS URLs
- Add video demonstration back to Ona Snapshot section in CONTRIBUTING.md

Co-authored-by: Ona <[email protected]>
@Tobbe
Copy link
Collaborator

Tobbe commented Sep 21, 2025

@Siddhant-K-code Thank you 🙏 I'm leaving for a vacation. I'll take a look at this when I get back.

@Tobbe Tobbe added this to the next-release-patch milestone Oct 13, 2025
@Tobbe Tobbe added release:docs This PR only updates docs changesets-ok Override the changesets check labels Oct 13, 2025
@Tobbe Tobbe removed the changesets-ok Override the changesets check label Oct 13, 2025
@Tobbe
Copy link
Collaborator

Tobbe commented Oct 13, 2025

@Siddhant-K-code Development on RedwoodGraphQL is winding down. But I'm keeping the dream alive over at https://cedarjs.com 🤩 I'll still try to get this PR merged here, but I've also copied it over to the Cedar repo: cedarjs/cedar#475 I tried to keep it as-is as much as possible, and will then follow up with a PR that changes the RW references over to Cedar

I also have a Starter repo over there. Would love it if you wanted to take a look at the README and all the config files to make sure they're up-to-date with everything new with Ona 🙏

@Siddhant-K-code
Copy link
Contributor Author

Thanks for the heads up about Cedar and for copying the PR over, @Tobbe. I'll check cedarjs/cedar#475.

Regarding the Starter repo, can you confirm which one you're referring to? Is it https://github.com/cedarjs/starter? Happy to review the README and config files to ensure they're aligned with the latest Ona features.

@Tobbe Tobbe merged commit 0dd1914 into redwoodjs:main Oct 13, 2025
45 of 46 checks passed
@Siddhant-K-code Siddhant-K-code deleted the feat/migrate-gitpod-classic-to-ona branch October 13, 2025 10:52
@Tobbe
Copy link
Collaborator

Tobbe commented Oct 13, 2025

@Siddhant-K-code Yes, that's the one! (https://github.com/cedarjs/starter)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:docs This PR only updates docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants