Skip to content

Conversation

@dyanakiev
Copy link
Member

Add Site ENV Update API Endpoint

Description

Adds a new API endpoint that allows updating a site's .env file through the API. This complements the existing web interface functionality and enables programmatic .env file updates.

API Details

New Endpoint

PUT /api/projects/{project}/servers/{server}/sites/{site}/env

Authentication

  • Requires authentication token
  • Requires 'write' ability

Request Body

{
    "env": "APP_NAME=Laravel\nAPP_ENV=production"
}

dyanakiev and others added 10 commits March 22, 2025 11:10
- Add PUT /api/projects/{project}/servers/{server}/sites/{site}/env endpoint
- Add feature tests
- Add GET /api/projects/{project}/servers/{server}/sites/{site}/env endpoint
- Add feature tests with SSH mocking
- Add DuplicateDatabase action
- Add duplicate action to database list
- Add API endpoint for database duplication
- Add comprehensive test coverage
- Handle storage provider requirements
- Add ability to checkout PRs using pr-{number} format
- Safe handling of existing branches
- Validate PR number format
- Prevent accidental branch overwrites
…duplication

2.x feat add database duplication
…-to-pull-request

feat(git): Add support for checking out GitHub pull requests
@dyanakiev
Copy link
Member Author

I'm closing this pr and adding the update to the reading pull request, as this one got messy.

@dyanakiev dyanakiev closed this Mar 24, 2025
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