mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
fix nodemon
This commit is contained in:
parent
35d7f0ee59
commit
a0895b222e
@ -1,4 +1,4 @@
|
||||
{
|
||||
"watch": ["webpack.config.js"],
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && webpack-dev-server --port=3003 --mode=development"
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'HOST=localhost' >> /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3003 --mode=development"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"watch": ["webpack.config.js"],
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && webpack-dev-server --port=3158 --mode=development"
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'HOST=localhost' >> /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3158 --mode=development"
|
||||
}
|
@ -42,7 +42,7 @@ export default class ProbeAPI extends BaseAPI<Probe, ProbeServiceType> {
|
||||
res,
|
||||
{
|
||||
'HOST': globalConfig?.host?.toString() || 'localhost',
|
||||
'USE_HTTPS': globalConfig?.useHttps || false
|
||||
'USE_HTTPS': globalConfig?.useHttps?.toString() || "false"
|
||||
},
|
||||
|
||||
);
|
@ -30,7 +30,7 @@ export const env: Function = (key: string): string => {
|
||||
};
|
||||
|
||||
export const HTTP_PROTOCOL: Protocol =
|
||||
env('USE_HTTPS') === true ? Protocol.HTTP : Protocol.HTTPS;
|
||||
env('USE_HTTPS') === "true" ? Protocol.HTTPS : Protocol.HTTP;
|
||||
|
||||
export const HOST: string = env('HOST') || '';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"watch": ["webpack.config.js"],
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && webpack-dev-server --port=3009 --mode=development"
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'HOST=localhost' >> /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3009 --mode=development"
|
||||
}
|
@ -7,15 +7,13 @@ const readEnvFile = (pathToFile) => {
|
||||
|
||||
const parsed = dotenv.config({ path: pathToFile }).parsed;
|
||||
|
||||
const env = {};
|
||||
const env = {
|
||||
};
|
||||
|
||||
for (const key in parsed) {
|
||||
env[key] = JSON.stringify(parsed[key]);
|
||||
}
|
||||
|
||||
env['HOST'] = 'localhost' // use localhost for dev.
|
||||
env['USE_HTTPS'] = true;
|
||||
|
||||
return env;
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ import BillingInvoiceAPI from 'CommonServer/API/BillingInvoiceAPI';
|
||||
|
||||
import ProjectAPI from 'CommonServer/API/ProjectAPI';
|
||||
|
||||
import GlobalConfigAPI from 'CommonServer/API/GlobalConfig';
|
||||
import GlobalConfigAPI from 'CommonServer/API/GlobalConfigAPI';
|
||||
|
||||
import ShortLink from 'Model/Models/ShortLink';
|
||||
import ShortLinkService, {
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"watch": ["webpack.config.js"],
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && webpack-dev-server --port=3105 --mode=development"
|
||||
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'HOST=localhost' >> /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3105 --mode=development"
|
||||
}
|
Loading…
Reference in New Issue
Block a user