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
  • 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 | Demo | Docs | Install
M

mani0525

@mani0525
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How can we create a query in AWS CloudWatch Logs Insights that lists all the words from logs in order of frequency?
    M mani0525

    I am dealing with cloudwatch logs, and I have a situation where I need to list all the words from the logs in order of their frequency. I have tried the following queries, but they haven't worked. If you could help, that would be greatly appreciated.

    Query1:
    fields @message
    | parse @message /(?\<word\>\[^\\s\]+)/
    | stats count() by word
    | sort count() desc
    
    Query2:
    fields @message
    | split " "
    | stats count(*) by \*
    | sort count\_* desc
    

    list of all the terms from the cloud watch logs listed in frequency order

    Discuss

  • appropriate redirect link for Docker
    M mani0525

    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.

    Discuss
  • Login

  • Don't have an account? Register

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