Set up native Cursor Cloud dev environment - #1574
Open
jrhoads wants to merge 2 commits into
Open
Conversation
Co-authored-by: Joseph Rhoads <jrhoads@users.noreply.github.com>
Co-authored-by: Joseph Rhoads <jrhoads@users.noreply.github.com>
jrhoads
marked this pull request as ready for review
July 31, 2026 13:56
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up the DataCite REST API ("Lupo") to run natively in the Cursor Cloud VM (no Docker), and adds durable instructions for future agents. No application code was modified.
The stack is Ruby 4.0.1 (via rbenv) + Rails 8.1, backed by MySQL 8.0, Memcached, and OpenSearch 2 running locally. Environment-specific files (
.env,.bundle/config,Gemfile.dev.lock) are git-ignored and persisted via the VM snapshot.Changes
Gemfile.dev— a local-only Gemfile that layers Puma on top of the realGemfile(the committedGemfilehas no app-server gem because production uses Passenger in Docker). Lets us runrails servernatively without touchingGemfile/Gemfile.lock..gitignore— ignore the generatedGemfile.dev.lock.AGENTS.md— Cursor Cloud specific instructions: how to start the backing services, environment/.envnotes, and lint/test/run commands plus non-obvious gotchas.Verification
bundle exec rubocop --parallelbundle exec rspec spec/models/prefix_spec.rbBUNDLE_GEMFILE=Gemfile.dev bundle exec rails serverGET /heartbeat→OKHello-world (core functionality): created a draft DOI via the authenticated REST API and read it back:
POST /dois(staff_admin JWT) →HTTP 201,state: draft, linked to clientdatacite.testuserGET /dois/10.14454/cursor-hello-17194→HTTP 200; confirmed persisted in MySQL/providersand/doislisting endpoints serve indexed data from OpenSearchlupo_api_dev_server_demo.mp4
/providers showing the created organization
/dois listing served from OpenSearch
To show artifacts inline, enable in settings.