Skip to main content

Deploying Frontity on (middleware?)



  • Chad Carlson

    Hello @harvey-botero!

    The tabs in your file look a bit off, but that may just be Discourse doing something funky.

    Other than that, Frontity looks like it defaults to port 3000, and that you need to override to use a different.

    All apps on can only run on port 8888, which is accessible in the $PORT environment variable. Try this file and see if you’re still having problems.

    name: app
    type: 'nodejs:14'
        build: npx frontity build
            start: FRONTITY_SERVE_PORT=$PORT npx frontity serve

    You’ll be able to see which port Frontity is trying to use in your app by either SSHing into the container and taking a look at /var/log/app.log or by running the CLI command platform logs app -p iin5x4pvtoxre -e master.

    You’ll notice I took a few keys out as well. Since you have a start.command, locations isn’t necessary. Also, you don’t need to define disk for this app. Only when you start setting aside mounts that need write access to the file system is that key required.

    Hope this helps!

  • Harvey Botero

    Thank you very much … it works perfectly! :slightly_smiling_face:


Please sign in to leave a comment.