Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. appropriate redirect link for Docker

appropriate redirect link for Docker

Scheduled Pinned Locked Moved Discuss
2 Posts 2 Posters 581 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mani0525
    wrote on last edited by
    #1

    I have Docker file:

    FROM cloudron/base:0.10.0
    ENV PATH /usr/local/node-6.9.5/bin:$PATH
    WORKDIR /tmp
    COPY package.json /tmp/
    RUN npm config set registry http://registry.npmjs.org/ && npm install
    WORKDIR /usr/src/app
    COPY . /usr/src/app
    RUN cp -a /tmp/node_modules /usr/src/app
    RUN npm run build
    EXPOSE 8000
    CMD [ "npm", "run", "start:production" ]
    

    if I run this by:

    then going to http://localhost:8000 works fine but if I want go to http://localhost:8000/about I get error:
    Cannot GET /about
    What should I do to set it up properly? Of course, using such a URL when developing my React app is fine.
    Edit:

     "scripts": {
        "clean": "rimraf dist",
        "compile": "node build/scripts/compile",
        "build": "npm run clean && cross-env NODE_ENV=production npm run compile",
        "start": "cross-env NODE_ENV=development node build/scripts/start",
        "start:production": "cross-env NODE_ENV=production node build/scripts/start",
        "test": "cross-env NODE_ENV=test karma start build/karma.config",
        "test:watch": "npm test -- --watch",
        "lint": "eslint .",
        "lint:fix": "npm run lint -- --fix"
      },
    

    It appears that my start:production is poor.

    1 Reply Last reply
    0
    • nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by
      #2

      Hi, just to be sure, this is a forum with Cloudron related topics. Are you deploying your app with Cloudron?

      1 Reply Last reply
      1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search