Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed/improved handling of app names in api #904

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

acgonzales
Copy link
Contributor

This PR is meant to improve and fix the handling of app names particularly in create and update APIs. It rids of spaces from the input JSON and replaces them with -.

Reasoning

In the UI, spaces are not allowed when inputting the app name but its not the same using the API as it inserts it as is.

This resulted to a bug I encountered when trying to deploy a compose service. The deployment failed due to an unknown command error as Dokploy tries to execute this command which is obviously invalid:

║ App Name: hello world
║ Build Compose 🐳
║ Detected: 0 mounts 📂
║ Command: docker compose -p hello world -f docker-compose.yml up -d
║ --build --remove-orphans
║ Source Type: docker raw ✅
║ Compose Type: docker-compose ✅

...

unknown docker command: "compose hello"

@Siumauricio Siumauricio merged commit d2b662f into Dokploy:canary Dec 23, 2024
@acgonzales acgonzales deleted the fix/api-appname branch December 25, 2024 12:56
@Siumauricio Siumauricio mentioned this pull request Dec 27, 2024
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.

2 participants