-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Running Migrations in Azure App Service #5084
Comments
I have circumvented this issue by installing knex globally on startup, but that's not the ideal approach. Would still like to understand the previous issue. |
@jamesderrick Encountered this exact issue and used the same workaround, were you able to find another solution? |
I put together a knex demo a couple of weeks ago and was actually able to make it work without an error |
I had the same issue, and it was caused by projectkudu/kudu#2946 in my case. I set up an Azure Pipeline with projectkudu/kudu#2946 (comment) can be the best workaround for now:
|
Environment
Knex version: 1.0.4
Database + version: Azure SQL (SQL Server)
OS: Linux
Bug
I'm trying to use knex within an Azure App Service.
I can connect to the database and run queries without any issue. But I have an issue with migrations.
I originally had a migrate script set up to run when the container starts but that was erroring. So I'm now testing it manually by SSH-ing to the container and trying to run the following command
npx knex migrate:latest --env production
.I get the error
This is only a problem in Azure, the command works perfectly fine when run on my local version
The text was updated successfully, but these errors were encountered: