Skip to content

Add .devin/environment.yaml for automated repo setup#774

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1780703286-add-environment-config
Open

Add .devin/environment.yaml for automated repo setup#774
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1780703286-add-environment-config

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented Jun 5, 2026

Summary

Adds .devin/environment.yaml so future Devin sessions automatically set up this repo. The config:

  • maintenance: installs backend + frontend deps, copies .env.example.env with correct FRONTEND_URL=http://localhost:5173
  • knowledge: documents lint (frontend/npm run lint), test (backend/npm test — 161 tests), build (frontend/npm run build), dev server startup, and project structure

Verified locally: deps install, all 161 backend tests pass, frontend builds + lints clean, both dev servers run and the app works end-to-end.

Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/28d82e543da447f082070615b11f59c1
Requested by: @bsmitches


Open in Devin Review

@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment thread .devin/environment.yaml
Comment on lines +10 to +11
cd backend && cp -n .env.example .env && sed -i 's|FRONTEND_URL=http://localhost:3000|FRONTEND_URL=http://localhost:5173|' .env && npm install
cd frontend && cp -n .env.example .env && npm install
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Maintenance script's second cd frontend fails because working directory is still backend/

In the maintenance block (.devin/environment.yaml:10-11), the YAML | literal block is executed as a single shell script. The first line cd backend && ... changes the working directory to backend/. The second line then runs cd frontend, which tries to resolve backend/frontend/ — a path that doesn't exist (confirmed: no frontend directory inside backend/). This causes the entire second line to fail, meaning the frontend .env is never copied and npm install is never run for the frontend.

Suggested change
cd backend && cp -n .env.example .env && sed -i 's|FRONTEND_URL=http://localhost:3000|FRONTEND_URL=http://localhost:5173|' .env && npm install
cd frontend && cp -n .env.example .env && npm install
cd backend && cp -n .env.example .env && sed -i 's|FRONTEND_URL=http://localhost:3000|FRONTEND_URL=http://localhost:5173|' .env && npm install
cd ../frontend && cp -n .env.example .env && npm install
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant