Deploy the App

Page last updated:

Page last updated:

In this step you will deploy the app to Swisscom Application Cloud.

Push your app to the cloud by executing the following command and replacing the “my-random-hostname” with your own hostname. This will be part of the URL your app will be reached at and it has to be globally unique so be creative. The -m 64M tells Cloud Foundry to use 64MB of memory for our app which should be plenty. The -b tells Cloud Foundry to use the .NET Core buildpack.

$ cf push my-dotnetcore-app -m 64M -n my-random-hostname -b https://github.com/cloudfoundry/dotnet-core-buildpack.git
Creating app my-dotnetcore-app in org MyOrg / space MySpace as user@mydomain.com...
OK

Creating route my-random-hostname.scapp.io...
OK

Binding my-random-hostname.scapp.io to my-dotnetcore-app...
OK

Uploading my-dotnetcore-app...
Uploading app files from: /.../cf-sample-app-dotnetcore
Uploading 1.2K, 3 files
Done uploading
OK

...

requested state: started
instances: 1/1
usage: 64M x 1 instances
urls: my-random-hostname.scapp.io
last uploaded: Wed Mar 30 14:10:57 UTC 2016
stack: unknown
buildpack: dotnetcore 1.0.2

The application is now deployed. Ensure that the app is running:

$ cf app my-dotnetcore-app
Showing health and status for app my-dotnetcore-app in org MyOrg / space MySpace as user@mydomain.com...
OK

requested state: started
instances: 1/1
usage: 64M x 1 instances
urls: my-random-hostname.scapp.io
last uploaded: Wed Mar 30 14:10:57 UTC 2016
stack: cflinuxfs2
buildpack: dotnetcore 1.0.2

     state     since                    cpu    memory         disk           details
#0   running   2016-10-10 01:17:02 PM   0.0%   32.1M of 64M   555.9M of 1G

Now visit the app at the URL. You can find the URL in the urls property of the statement above.

I have deployed my App
View the source for this page in GitHub