Generate Preview URLs
Preview URLs can be manually generated by taking the following steps:
QT
For QT you should go into one of the subdirectories.
-
For QT you should go into one of the subdirectories, eg for qt go into the qt directory (ie qt/qt on your machine)
-
Run
> npm run build
-
Run the preview command, see: Building The Preview Command
Admin/Apply/Assessments
-
Change NODE_ENV=development to NODE_ENV=production in .env.production.local and run:
npm run production:build
-
Run: > firebase use production
-
Run: > firebase hosting:channel:deploy –only production-admin-app 1723-diversity –expires 30d
-
Revert above back to: NODE_ENV=development (in .env.production.local)
-
Run: > firebase use develop
Building The Preview Command
The preview comman looks like this:
> firebase hosting:channel:deploy --only <app-name-from-package.json> <approx-branch-name> --expires 30d
Note that the <app-name-from-package.json> can be found in the package.json file and is the string immediately after ‘hosting’ for the command which deploys to the appropriate environment.
So, for the develop environment (in the snippet below), it is: develop-qt-app