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
E

Eliahou

@Eliahou
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • run.sh not working as expected
    E Eliahou

    @joseph
    Oh, okay! That works perfectly.
    Thank you for the clarification!

    LAMP

  • run.sh not working as expected
    E Eliahou

    Hi,

    I'm not familiar with Docker packaging and custom apps, so I'm running my small Node.js applications within the LAMP app.
    To use the latest Node.js version (since the default in the LAMP app is v18.18.0), I reinstalled Node.js in a custom path.

    I then added the following commands to the run.sh file to use my custom Node.js installation:

    export PATH="/app/data/nodejs/bin:$PATH"
    export NODE_PATH="/app/data/node_modules"
    export npm_config_prefix="/app/data"
    export npm_config_cache="/app/data/.npm-cache"
    

    However, these commands don't seem to execute automatically. Each time I open the terminal (not just when I restart the app), I have to manually enter these commands to use the custom Node.js path. It appears that the run.sh file isn't running these commands as expected, or perhaps I'm missing something.

    Could someone please advise on what I might be doing wrong or suggest a solution?

    Any help would be appreciated!
    Thanks!

    LAMP
  • Login

  • Don't have an account? Register

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