Error deploying ASP.NET 5 application in Heroku using dotnet-buildpack

I am trying to deploy an ASP.NET 5 application in Heroku using Heroku dotnet-buildpack . This is a brand new application created using Visual Studio 2015, I have not made any code changes yet. When deploying, I get an error message:

remote: Downloading dnvm as script to '/app/.dnx/dnvm'
remote:
remote: Appending source string to /app/.profile
remote: Type 'source /app/.dnx/dnvm/dnvm.sh' to start using dnvm
remote: Architecture must be x86 or x64.
remote:
remote:  !     Push rejected, failed to compile ASP.NET 5 app
remote:
remote: Verifying deploy...

In my global.json, I called the architecture "x86".

{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-beta5",
    "runtime": "clr",
    "architecture": "x86"
  }
}

How to configure the application to resolve this error?

Any help is appreciated.

+4
source share
1 answer

My solution is described here https://github.com/heroku/dotnet-buildpack/issues/4 . Hope this helps

+1

Source: https://habr.com/ru/post/1612987/


All Articles