Dennis
Currently Ploi installs node/npm LTS version.
We have some projects that need an older version of node/npm to build assets, so it would be very helpful for us to have a node version manager installed by Ploi so that we can switch node version in the deploy script.
For example nvm
or n
.
They both have the option to set a dot file in your repo and it will set the correct node version from that file.
github.com/nvm-sh/nvm/blob/master/README.md#nvmrc
github.com/tj/n#specifying-node-versions
Once a user added the file to their project they will only need to add nvm use
or n auto
to their project.
Saeed Rehman
Very much needed. To be Honest I have a legacy project that is vey critical and running on Node 10.2. We started it in 2018 on LaravelForge. One of the reasons for not migrating it to Ploi yet is that I am too lazy to install Old node version manually.
jurgen
FYI, for now I install nvm on behalf of the user of the website and in the deploy script I put: . ~/.nvm/nvm.sh && nvm use 16
Dennis
Item author@Jurgen Indeed, this is fine and will probably also work with the installation with Ploi.
Dennis
Item authorVia the manage tab, you may now install NVM or N (up to you), we're still checking of we can expand functionality.
Tim Kleyersburg
@Dennis I've tried using this feature today by first installing nvm on the server over the manage tab and then just using the command nvm use auto
in my deploy script. This outputs ploi.sh: line 8: nvm: command not found
Can you tell me/us how to correctly use this feature?
Node version manager
-
Dennis moved item to board Live
2 months ago -
Dennis moved item to board In progress
3 months ago -
Dennis opened
1 year ago