-
Notifications
You must be signed in to change notification settings - Fork 4
Project Migrations
Sometimes new nio versions require a migration of the project structure. This is a repository of scripts that can be run from the project folder to perform these migrations
This script will move your environment variables from a nio.env file to the [user_defined] section of nio.conf.
https://gist.github.com/tlugger/2da9c8e615265243c07c76549f402ca6
If migrating a project from nio 2.x to 3.0, this script will let you add IDs to any blocks or services that don't already have IDs. This prevents you from having to go in and save every block/service after running your 3.0 binary.
It is not required to run this script, nio 3.0 has backwards compatibility to understand 2.x projects. However, this will maybe save you some headaches from not having IDs in your block configs later on.
Note: this script must be run from the etc/blocks or etc/services directory.
https://gist.github.com/mattdodge/5d447ebf67797302e0b9cb2f5bfce7b3