Merge pull request #48 from kaermorchen/rooturl-env

Getting rootURL from system environment
This commit is contained in:
Stanislav Romanov 2023-05-19 08:20:59 +03:00 committed by GitHub
commit dbd1adeb4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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": {