Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Application builds successfully, but deploy button will not apear

porter235's Avatar


26 Sep, 2017 03:27 AM

Hello, I am very new to ASP.NET and appharbor. I am trying to deploy my first web application but I cannot get it to deploy. It works locally and builds successfully on appharbor. There are no errors in the log, but the deploy button never shows up. Does anyone know what my problem could be?

Thank you!

  1. 1 Posted by jdmeans7 on 26 Sep, 2017 03:34 PM

    jdmeans7's Avatar

    I am having the same issue.

  2. 2 Posted by AHRocks on 26 Sep, 2017 05:43 PM

    AHRocks's Avatar

    I just deployed a new .NET Core 2.0 application to AH last night (the "dotnet new mvc" sample), and the thing that's missing if the Publish Build Step. AH does not have this automated yet (and they really should update the Knowledge Base).

    Assuming you're using .NET Core (1.1 or 2.0), you just have to alter 2 things in the csproj file for the Web project to get the website to deploy. See this post from Rune:

    The two things that you need to change are in the first lines: The DefaultTargets="Publish" in the root element and the <PublishDir> element further down. Note that in some configurations this will cause some files to output to your project's root folder, so I change the "$(OutDir)_PublishedWebsites..." to "$(OutDir)\_PublishedWebsites..." (extra backslash) but sometimes when you compile locally, this will sometimes send the publication files to C:\, but this is only a minor annoyance until AH gets their build system updated.

    Hope that helps. I'm working with Rune on a unit test problem today of my own, so I'll keep my eye on this thread if I can help more.

    -AH Rocks

  3. 3 Posted by porter235 on 26 Sep, 2017 08:17 PM

    porter235's Avatar

    AHRocks, you rock!

    This worked perfectly and now i'm up and running. Thank you very much!

  4. porter235 closed this discussion on 26 Sep, 2017 08:42 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac