Getting rootURL from system environment

This commit is contained in:
Stanislav Romanov 2023-05-19 08:15:27 +03:00
parent 64893bf52f
commit 87b7fee1ee
2 changed files with 8 additions and 2 deletions

View file

@ -40,7 +40,13 @@ module.exports = function (environment) {
}
if (environment === 'production') {
ENV.rootURL = '/meiliadmin/';
// here you can enable a production-specific feature
// Getting rootURL from system environment. For example:
// ROOTURL=/meiliadmin/ ember build --environment=production
if (process.env.ROOTURL) {
ENV.rootURL = process.env.ROOTURL;
}
}
return ENV;

View file

@ -124,7 +124,7 @@
},
"release-it": {
"hooks": {
"after:bump": "npm run build && cd dist/ && tar -zcf dist.tgz *"
"after:bump": "ROOTURL=/meiliadmin/ npm run build && cd dist/ && tar -zcf dist.tgz *"
},
"plugins": {
"release-it-lerna-changelog": {