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

nuxthub database migrations mark-all-applied url only works http #51

Closed
saltytostitos opened this issue Feb 9, 2025 · 2 comments
Closed

Comments

@saltytostitos
Copy link

nuxthub mark-all-applied calls for http://localhost:3000 on local dev.

Yeah, I'm the guy who uses safari in development some so I enable HTTPS during development.

Not sure how important this issue really is, as I'm probably the only person who sees this. The workaround is too easy.

const url = args.url || process.env.NUXT_HUB_PROJECT_URL || 'http://localhost:3000'

Error:

◇  Do you want to mark 2 migrations as applied on http://localhost:3000?
│  Yes
⠋ Marking 2 migrations as applied on http://localhost:3000...
[7:39:28 PM]  [ERROR]  Could not connect to http://localhost:3000/api/_hub/database/query


[7:39:28 PM]  [WARN]  Please make sure to run the Nuxt development server with npx nuxt dev.

✖ Could not mark all migrations as applied on http://localhost:3000.

[7:39:28 PM]  [ERROR]  [POST] "http://localhost:3000/api/_hub/database/query": <no response> fetch failed
@saltytostitos saltytostitos changed the title nuxthub mark-all-applied url only works http nuxthub database migrations mark-all-applied url only works http Feb 9, 2025
@RihanArfan
Copy link
Collaborator

It's currently that as that's Nuxt's default. You can pass a different URL than the default with the --url argument 😃

npx nuxthub database migrations mark-all-applied --url="https://localhost:3000"

@saltytostitos
Copy link
Author

It's currently that as that's Nuxt's default. You can pass a different URL than the default with the --url argument 😃

npx nuxthub database migrations mark-all-applied --url="https://localhost:3000"

Love it! Thanks for the quick reply.

@atinux atinux closed this as completed Feb 10, 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

No branches or pull requests

3 participants