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

Configure build for needed platforms #2565

Open
B4tzz opened this issue Jan 22, 2025 · 1 comment
Open

Configure build for needed platforms #2565

B4tzz opened this issue Jan 22, 2025 · 1 comment
Assignees

Comments

@B4tzz
Copy link

B4tzz commented Jan 22, 2025

Hi,

I'm trying to deploy an app to an Azure App Service using local Git deployments through VS Code. The App Service runtime is set to Python 3.11, but I also need Node.js 20 for the frontend build. However, Oryx sometimes detects the Node.js platform but installs version 16 instead. How can I specify the exact version I need?

Another issue I'm facing is with a dependency for a Python library. My project requires PyAudio. Locally, pip install works fine, but during the build process, it fails with an error saying it can't find the portaudio.h package. From my research, I learned it depends on a C library called portaudio19-dev. I tried installing it using pre-build commands, but that also failed.

How can I resolve these issues?

@sarsharma sarsharma self-assigned this Feb 25, 2025
@sarsharma
Copy link
Member

Hi @B4tzz
You can specify the node version you want to use in your package.json file by defining engine
Eg package.json

{
  "name": "your-project-name",
  "version": "1.0.0",
  "engines": {
    "node": "20.x"
  }
}

Oryx should use Node 20 during build with this change

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

2 participants