Getting rootURL from system environment
This commit is contained in:
parent
64893bf52f
commit
87b7fee1ee
2 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue