Git Product home page Git Product logo

contentpoc's Introduction

About

POC for content...

Publishing

The dotnet app can be published using the following command (note that the location will be in root/publish)

run from root dotnet publish -c Release -o ../publish && chmod +x publish

Hosting

The app is hosted on Heroku. Instructions to create, host, release

  1. Install the Heroku CLI https://devcenter.heroku.com/articles/heroku-cli#download-and-install .
  2. Login heroku login
  3. Container login heroku container:login
  4. Create an app heroku apps:create {appName} --region eu
  5. Push an app (from Dockerfile) heroku container:push web -a {appName}
  6. Release an app heroku container:release web -a {appName}
  7. View release heroku container:release web -a {appName}
  8. View logs heroku logs --tail -a {appName}

Heroku dynamically picks the port to use for the app, this means we need to assign our app to this port.

The port will be assigned to the $PORT variable, therefore available at run time. To set the port at runtime in dotnet projects assign the following value ASPNETCORE_URLS=http://*:$PORT

Note: this must be at runtime (not build), therefore will be inline with the CMD arguemnts

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.