Giter Site home page Giter Site logo

Comments (9)

mrdavidlaing avatar mrdavidlaing commented on September 24, 2024

@danhigham; do you think its necessary for the buildpack to install nginx in front of a NancyFx application?

from .net-buildpack.

andypiper avatar andypiper commented on September 24, 2024

Is this why I am unable to push https://github.com/squidge/events

Preparing to start nancyevents... OK
-----> Downloaded app package (3.7M)
Initialized empty Git repository in /tmp/buildpacks/.net-buildpack/.git/
Compile failed with exception #<RuntimeError: No container can run the application:>
at:
["/tmp/buildpacks/.net-buildpack/lib/net_buildpack/buildpack.rb:299:in `container'",
 "/tmp/buildpacks/.net-buildpack/lib/net_buildpack/buildpack.rb:106:in `compile'",
 "/tmp/buildpacks/.net-buildpack/bin/compile:28:in `<main>'"]

from .net-buildpack.

mrdavidlaing avatar mrdavidlaing commented on September 24, 2024

Its likely. Currently we only have a functioning Console.exe and Procfile containers.

I'd be happy to add a "NancyFX" container to support squidge/events - how would you like it to work?

from .net-buildpack.

andypiper avatar andypiper commented on September 24, 2024

I guess it would be rude to say... "I just want it to work" :-)

right now there isn't a lot of doc in the buildpack in terms of what a dev is expected to push and what is expected to work, whereas the Java buildpack is pretty clear (build your code locally, push, and it detects based on various criteria and inserts runtime and container etc).

This looks like a pretty basic .NET NancyFX app which runs out of MD/Xamarin, albeit once various assemblies are installed via nuget. A simple push "should" be enough (if we are looking to mimic the Java buildpack) to get it up and running.

from .net-buildpack.

mrdavidlaing avatar mrdavidlaing commented on September 24, 2024

@andypiper I had a stab at getting squidge/events to work locally and failed. Specifically, it looks like its missing nuget's packages.config that tells NuGet what dependancies to install. Any idea which packages (and which versions of those packages) should be installed?

It looks like this app is a console app that opens an HttpListener on localhost:8888-8889

The reason this isn't currently detected and run by the Console Container is that it doesn't have an Events.exe.config, which is the Console container's detection criteria.

Unfortunately, even if we could detect that its a NancyFX console app; the ports its listens on are hardcoded. If they were part of the config we could "automagically" update them during staging.

So; the way forward.

  1. I'll add some documentation for the Console container and the AppSettingsAutoConfiguration framework.
  2. I need a "canonical" NancyFX sample app to work with. Can you suggest one?

from .net-buildpack.

andypiper avatar andypiper commented on September 24, 2024

Not sure I am able to suggest one, no. I already realised that this would need to be modified to read the port from the environment as you would in any standard app on CF or Heroku - it just looked simple and straightforward enough. I'll cast around for some more example apps.

from .net-buildpack.

phillip-haydon avatar phillip-haydon commented on September 24, 2024

Just saw your post on the forums. What do you mean by canonical app?

You can run nancy using a console app, but usually need something like nginx to push requests to the app. You can use nancy without a console app using mono-fastcgi-server4

http://www.philliphaydon.com/2013/06/setting-up-mono-on-nginx/

http://www.philliphaydon.com/2013/07/setting-up-a-nancyfx-website/

Ports can be configurable.

There are different reasons for using Self-hosting console app vs a website when it comes to Linux hosting since a console app will allow you to run an Owin host, while you cannot do that when its run on nginx.

from .net-buildpack.

mrdavidlaing avatar mrdavidlaing commented on September 24, 2024

@phillip-haydon, thanks for the pointers. Concerning:

What do you mean by canonical app?

The NancyFX hosting tutorials I've seen all show how to deploy super simple "hello world" apps; which I'm sure don't use much of NancyFX.

I'm looking for an existing NancyFX app that I can run to prove that my NancyFX hosting setup on CloudFoundry works.

As an example; to test that my PHP hosting setup works on CloudFoundry I use WordPress; since that is a large and much used PHP application.

Is there something similar for NancyFX?

from .net-buildpack.

nterry avatar nterry commented on September 24, 2024

Here you go:

https://github.com/nterry/NancyDemo

There is a simple Nancy self-hosted container. It will even auto-restore
when xbuild is invoked

On Tue, Jan 21, 2014 at 5:18 PM, David Laing [email protected]:

@phillip-haydon https://github.com/phillip-haydon, thanks for the
pointers. Concerning:

What do you mean by canonical app?

The NancyFX hosting tutorials I've seen all show how to deploy super
simple "hello world" apps; which I'm sure don't use much of NancyFX.

I'm looking for an existing NancyFX app that I can run to prove that my
NancyFX hosting setup on CloudFoundry works.

As an example; to test that my PHP hosting setup works on CloudFoundry I
use WordPress; since that is a large and much used PHP application.

Is there something similar for NancyFX?


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-32980157
.

from .net-buildpack.

Related Issues (20)

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.