Giter VIP home page Giter VIP logo

dotnet-buildpack's Introduction

Please note: This buildpack is an experimental project and is not officially supported.

ASP.NET 5 Buildpack

This is a Heroku buildpack for building ASP.NET 5 apps using project.json files and the kpm package manager.

Mono is bundled for runtime execution.

Usage

Example usage:

$ heroku create --buildpack http://github.com/heroku/dotnet-buildpack.git
$ git push heroku master

The buildpack will detect your app as ASP.NET 5 if it has project.json. If the source code you want to build contains multiple project.json files, you can use a .deployment or set a $PROJECT config var to control which one is built.

dotnet-buildpack's People

Contributors

brandur avatar friism avatar svc-scm avatar thaina avatar wuputah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnet-buildpack's Issues

failed to deploy a empty asp.net core application on Heroku

I tried deploying an asp.net core mvc application on Heroku but failed

$ git push heroku master                                                                  
Counting objects: 454, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (438/438), done.
Writing objects: 100% (454/454), 920.30 KiB | 0 bytes/s, done.
Total 454 (delta 14), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote:  !     No default language could be detected for this app.
remote: 			HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: 			See https://devcenter.heroku.com/articles/buildpacks
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !	Push rejected to morning-badlands-22019.
remote:
To https://git.heroku.com/morning-badlands-22019.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/morning-badlands-22019.git'

My project.json file

{
  "dependencies": {
    "Microsoft.NETCore.App": {
      "version": "1.1.0",
      "type": "platform"
    },
    "Microsoft.AspNetCore.Diagnostics": "1.1.0",
    "Microsoft.AspNetCore.Mvc": "1.1.0",
    "Microsoft.AspNetCore.Razor.Tools": {
      "version": "1.1.0-preview4-final",
      "type": "build"
    },
    "Microsoft.AspNetCore.Routing": "1.1.0",
    "Microsoft.AspNetCore.Server.IISIntegration": "1.1.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.1.0",
    "Microsoft.AspNetCore.StaticFiles": "1.1.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0",
    "Microsoft.Extensions.Configuration.Json": "1.1.0",
    "Microsoft.Extensions.Configuration.CommandLine": "1.1.0",
    "Microsoft.Extensions.Logging": "1.1.0",
    "Microsoft.Extensions.Logging.Console": "1.1.0",
    "Microsoft.Extensions.Logging.Debug": "1.1.0",
    "Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.1.0"
  },

  "tools": {
    "BundlerMinifier.Core": "2.2.306",
    "Microsoft.AspNetCore.Razor.Tools": "1.1.0-preview4-final",
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.1.0-preview4-final"
  },

  "frameworks": {
    "netcoreapp1.1": {
      "imports": [
        "dotnet5.6",
        "portable-net45+win8"
      ]
    }
  },

  "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true
  },

  "runtimeOptions": {
    "configProperties": {
      "System.GC.Server": true
    }
  },

  "publishOptions": {
    "include": [
      "wwwroot",
      "**/*.cshtml",
      "appsettings.json",
      "web.config"
    ]
  },

  "scripts": {
    "precompile": [ "dotnet bundle" ],
    "prepublish": [ "bower install" ],
    "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  },

  "tooling": {
    "defaultNamespace": "GameReviewer"
  }
}

screen shot 2017-01-21 at 7 25 24 pm

CoreCLR instead of Mono

Hi,

Wonder if there are plans to release official buildpack for CoreCLR now that it is RTM?

Thanks.

Push Rejected

$ git push heroku master
Counting objects: 145, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (136/136), done.
Writing objects: 100% (145/145), 588.87 KiB | 0 bytes/s, done.
Total 145 (delta 35), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching set buildpack https://github.com/heroku/dotnet-buildpack.git... done
remote: -----> ASP.NET 5 app detected
remote: installing https://github.com/friism/mono-builder/releases/download/v4.0.1.44/mono-4.0.1.44.tar.gz
remote:
remote:  !     Push rejected, failed to compile ASP.NET 5 app
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to repo.
remote:
To https://git.heroku.com/repo.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/repo.git'

Building fails on Dokku during kpm restore.

I'm having some issues running this buildpack on the dokku platform, the build process always halts at ´kpm restore´ giving out an error message like "ERROR building certificate chain:[...]".

During the push-process to a dokku server: https://gist.github.com/sampettersson/f5b7e99e30b692b76e46
Building on herokuish: https://gist.github.com/sampettersson/52a2b47366d915062ffc

Do you guys have any idea of what may be happening here?

Referencing the issue over at buildstep:
progrium/buildstep#147

I tried deploying an asp.net core 1.0.0 application on Heroku but failed

Buildpack: http://github.com/noliar/dotnet-buildpack.git
stack: cedar-14

Counting objects: 91, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (84/84), done.
Writing objects: 100% (91/91), 515.12 KiB | 0 bytes/s, done.
Total 91 (delta 5), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> ASP.NET Core app detected
remote: Installing Node
remote: Installing bower
remote: npm WARN deprecated [email protected]: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
remote: /tmp/tmp.aUoPRtFmYb/node-v4.4.4-linux-x64/bin/bower -> /tmp/tmp.aUoPRtFmYb/node-v4.4.4-linux-x64/lib/node_modules/bower/bin/bower remote: [email protected] /tmp/tmp.aUoPRtFmYb/node-v4.4.4-linux-x64/lib/node_modules/bower
remote: Get .NET Core Version and Channel from the PROJECT
remote: Get version from global.json
remote: Installing the dependencies
remote: Install package
remote: -----> Cleaning apt caches
remote: -----> Updating apt caches
remote: Ign http://archive.ubuntu.com trusty InRelease
remote: Get:1 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
remote: Get:2 http://apt.postgresql.org trusty-pgdg InRelease [56.4 kB]
remote: Get:3 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
remote: Get:4 http://archive.ubuntu.com trusty Release.gpg [933 B]
remote: Get:5 http://archive.ubuntu.com trusty Release [58.5 kB]
remote: Get:6 http://apt.postgresql.org trusty-pgdg/main amd64 Packages [84.3 kB]
remote: Get:7 http://archive.ubuntu.com trusty-security/main amd64 Packages [700 kB]
remote: Ign http://apt.postgresql.org trusty-pgdg/main Translation-en_US
remote: Ign http://apt.postgresql.org trusty-pgdg/main Translation-en
remote: Get:8 http://archive.ubuntu.com trusty-security/universe amd64 Packages [200 kB]
remote: Get:9 http://archive.ubuntu.com trusty-security/main Translation-en [375 kB]
remote: Get:10 http://archive.ubuntu.com trusty-security/universe Translation-en [113 kB]
remote: Get:11 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1,048 kB]
remote: Get:12 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [438 kB]
remote: Get:13 http://archive.ubuntu.com trusty-updates/main Translation-en [517 kB]
remote: Get:14 http://archive.ubuntu.com trusty-updates/universe Translation-en [237 kB]
remote: Get:15 http://archive.ubuntu.com trusty/main amd64 Packages [1,350 kB]
remote: Get:16 http://archive.ubuntu.com trusty/universe amd64 Packages [5,859 kB]
remote: Get:17 http://archive.ubuntu.com trusty/main Translation-en [762 kB]
remote: Get:18 http://archive.ubuntu.com trusty/universe Translation-en [4,089 kB]
remote: Ign http://archive.ubuntu.com trusty/main Translation-en_US
remote: Ign http://archive.ubuntu.com trusty/universe Translation-en_US
remote: Fetched 16.0 MB in 10s (1,522 kB/s)
remote: Reading package lists...
remote: -----> Fetching .debs for libunwind8
remote: Reading package lists...
remote: Building dependency tree...
remote: The following NEW packages will be installed:
remote: libunwind8
remote: 0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.
remote: Need to get 48.3 kB of archives.
remote: After this operation, 194 kB of additional disk space will be used.
remote: Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libunwind8 amd64 1.1-2.2ubuntu3 [48.3 kB]
remote: Fetched 48.3 kB in 0s (161 kB/s)
remote: Download complete and in download only mode
remote: -----> Fetching .debs for gettext
remote: Reading package lists...
remote: Building dependency tree...
remote: The following extra packages will be installed:
remote: gettext-base libasprintf-dev libasprintf0c2 libgettextpo-dev libgettextpo0
remote: libunistring0
remote: Suggested packages:
remote: gettext-doc
remote: The following NEW packages will be installed:
remote: gettext gettext-base libasprintf-dev libasprintf0c2 libgettextpo-dev
remote: libgettextpo0 libunistring0
remote: 0 upgraded, 7 newly installed, 0 to remove and 59 not upgraded.
remote: Need to get 1,390 kB of archives.
remote: After this operation, 6,282 kB of additional disk space will be used.
remote: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libasprintf0c2 amd64 0.18.3.1-1ubuntu3 [6,712 B]
remote: Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main libunistring0 amd64 0.9.3-5ubuntu3 [271 kB]
remote: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgettextpo0 amd64 0.18.3.1-1ubuntu3 [108 kB]
remote: Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gettext-base amd64 0.18.3.1-1ubuntu3 [48.8 kB]
remote: Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gettext amd64 0.18.3.1-1ubuntu3 [829 kB]
remote: Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libasprintf-dev amd64 0.18.3.1-1ubuntu3 [4,438 B]
remote: Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgettextpo-dev amd64 0.18.3.1-1ubuntu3 [122 kB]
remote: Fetched 1,390 kB in 1s (1,330 kB/s)
remote: Download complete and in download only mode
remote: -----> Installing gettext_0.18.3.1-1ubuntu3_amd64.deb
remote: -----> Installing gettext-base_0.18.3.1-1ubuntu3_amd64.deb
remote: -----> Installing libasprintf0c2_0.18.3.1-1ubuntu3_amd64.deb
remote: -----> Installing libasprintf-dev_0.18.3.1-1ubuntu3_amd64.deb
remote: -----> Installing libgettextpo0_0.18.3.1-1ubuntu3_amd64.deb
remote: -----> Installing libgettextpo-dev_0.18.3.1-1ubuntu3_amd64.deb
remote: -----> Installing libunistring0_0.9.3-5ubuntu3_amd64.deb
remote: -----> Installing libunwind8_1.1-2.2ubuntu3_amd64.deb
remote: APT packages Installled
remote: Installing .NET CORE 1.0.0-preview2-003131 from https://dotnetcli.blob.core.windows.net/dotnet/Sdk/rel-1.0.0/dotnet-dev-ubuntu-x64.latest.tar.gz
remote: Found 1 project.json files
remote: Building /tmp/tmp.9twbNSjSEl/src/aspnetteste/project.json
remote: Reading App Name from project.json
remote: aspnetteste
remote: Restoring the packages
remote:
remote: Welcome to .NET Core!
remote: ---------------------
remote: Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
remote:
remote: Telemetry
remote: --------------
remote: The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and shared with the community.
remote: You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
remote: You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.
remote:
remote: Configuring...
remote: -------------------
remote: A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
remote: Decompressing 100% 5115 ms
remote: Expanding 100% 17224 ms
remote: /tmp/build_c844190724032ffc3d13654f5eca3a92/dotnet/sdk/1.0.0-rc4-004933/NuGet.targets(97,5): warning : Unable to find a project to restore! [/tmp/tmp.9twbNSjSEl/aspnetteste.sln]
remote: Publishing the app
remote: Microsoft (R) Build Engine version 15.1.548.43366
remote: Copyright (C) Microsoft Corporation. All rights reserved.
remote:
remote: /tmp/tmp.9twbNSjSEl/src/aspnetteste/project.json(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
remote: ! Push rejected, failed to compile ASP.NET Core app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to warm-stream-77591.
remote:
To https://git.heroku.com/warm-stream-77591.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/warm-stream-77591.git'

Runs really slowly on free dyno

Hi guys,

This might just be due to me using a free dyno to test, but the MVC music store example runs really slowly. The page is quick to load, and the response is received but it appears that the response is left open for anywhere up to 60 seconds.

You can reproduce this by clicking around the example site:
https://sheltered-temple-5471.herokuapp.com

The pages load, but the response stream stays open.

It runs fine on OSX using dnx.

Has anyone run this pack with non-free? What is the response like?

Thanks,

darbio

"Architecture must be x86 or x64" Error when deploying ASP.NET 5 Application

I am attempting to deploy an ASP.NET 5 Application to Heroku using the dotnet-buildpack. This is a brand new application created through Visual Studio 2015, I have not yet made any code modifications. While deploying, I get the error:

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 have specified the architecture as "x86".

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

How can I configure my application to resolve this error?

Any help is appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.