Node Version Manager (nvm) is now available on Simple Hosting!
You are now able to run any version of Node.js distributed via nvm and not limit yourself to the ones pre-installed on your Simple Hosting instance.
All you need to do is add a “.nvmrc” file to your project’s root directory and deploy your code.
For example, for a project deployed with Gandi CLI:
$ cd myapp $ echo "4.4" > .nvmrc $ git add .nvmrc $ git commit -m 'Use Node.js 4.4' $ git push gandi master $ gandi deploy
Simple Hosting’s deploy and build process will detect the presence of the “.nvmrc” file and install the required version if necessary.
Please check out the Node.js instance documentation to learn more:
Bonus: Run a Parse server on Simple Hosting!
The “parse-server” package requires the latest version of Node.js 4, which wasn’t previously supported on Simple Hosting. Thanks to “.nvmrc”, nothing is stopping you from running your own Parse server on your instance.
Follow our complete tutorial and example project to set up your own Parse server on Simple Hosting Node.js:
Enjoy!Tagged in Simple Hosting