Skip to content

Project import doesn't include database #765

@jsw324

Description

@jsw324

Description

When importing a project that includes a database from one organization to another using agentuity project import, the database is not automatically provisioned in the new org. Running the dev server fails with an unclear error that doesn't guide the user toward the resolution.

Steps to Reproduce

  1. Create a project in Org A that includes an Agentuity-provisioned database
  2. Import the project into Org B using agentuity project import
  3. Run bun run dev to start the dev server

Expected Behavior

Either:

  • The database should be automatically provisioned in the new org during import, OR
  • The CLI should detect the missing database dependency and provide a clear, actionable error message such as:

    "This project requires a database. Run agentuity db create to provision one, then set the DATABASE_URL environment variable."

Actual Behavior

The dev server fails with the following error:

[ERROR] Failed to import generated app from /Users/johndoe/Dev/my-project/.agentuity/app.js: DATABASE_URL environment variable is required for authentication
✗ Failed to start dev server: Error: Failed to load generated app: DATABASE_URL environment variable is required for authentication

Workaround

Manually provision a new database and set the DATABASE_URL environment variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions