Commit 373fd850 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

fix port number

parent a088af1d
Pipeline #3698 failed with stages
in 3 seconds
......@@ -4,7 +4,7 @@ variables:
KUBE_PROD_DOMAIN: play.oauth.no # The main domain for your application.
KUBE_TEST_DOMAIN: play-oauth.paas2.uninett.no # A domain which test versions of your application can be launched under.
KUBE_REVIEW_DOMAIN: play-oauth-review.paas2.uninett.no # A domain which review versions of your application can be launched under.
HTTP_PORT: '8080' # The port number of the web server.
HTTP_PORT: '3000' # The port number of the web server.
REPLICAS: '1'
stages:
......
......@@ -13,4 +13,5 @@ RUN ./install-fonts.sh
RUN npm run build:prod
EXPOSE 3000
CMD ["node", "server.js", "--use_strict"]
......@@ -20,7 +20,7 @@ app.use("/public", express.static(staticDir, {
// Always send the same file, so that our router can handle the routing.
app.get('*', function (req, res) {
res.sendFile(path.join(staticDir, 'index.html'));
});
var port = process.env.VCAP_APP_PORT || 3000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment