Comments (9)
@danhigham; do you think its necessary for the buildpack to install nginx in front of a NancyFx application?
from .net-buildpack.
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.
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.
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.
@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.
- I'll add some documentation for the Console container and the AppSettingsAutoConfiguration framework.
- I need a "canonical" NancyFX sample app to work with. Can you suggest one?
from .net-buildpack.
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.
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.
@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.
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)
- Create ASP.NET MVC container HOT 14
- Bump Mono version to latest. HOT 5
- manifest.yml fails with multiple env values HOT 3
- Add Procfile container HOT 1
- Add AppSettingsAutoReconfiguration autoconfiguration
- Include /usr/sbin in PATH HOT 1
- Fail if more than 1 .exe.config detected
- Migrate all project-type detection and parsing to iron-spect gem HOT 1
- Do we have a helloworld app that can run on this buildpack?
- Upgrade to mono-3.2.4
- System.Security.Cryptography.CryptographicException: Unsupported hash algorithm: 1.2.840.113549.1.3.5 HOT 4
- Server error, status code: 400, error code: 170001, message: Staging error: cannot get instances since staging failed
- I cannot get example (from Iron Foundry) running
- Server error, status code: 400, error code: 170005, message: App staging failed in the buildpack release phase HOT 2
- Adding Appdynamics extension to .net-buildpack HOT 1
- Getting error when deploying .NET 4.6 Web app in cloud foundry HOT 2
- Mono build pack for .NET 4.5 versions HOT 1
- .NET Console app crashing with mono build pack
- System.NotImplementedException: Not implemented as WebConfigurationManager seems buggy in Mono 3.2.4
- Cloud Foundry error - There are more than 1 potential .exe's
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from .net-buildpack.