mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-18 16:46:38 +00:00
fix(@embark/api): setup the embark-ui build dir before the express instance
This commit is contained in:
parent
78f7c52080
commit
c4d647c299
@ -32,8 +32,8 @@ export default class Server {
|
|||||||
private openSockets = new Set<net.Socket>();
|
private openSockets = new Set<net.Socket>();
|
||||||
|
|
||||||
constructor(private embark: Embark, private port: number, private hostname: string, private plugins: Plugins) {
|
constructor(private embark: Embark, private port: number, private hostname: string, private plugins: Plugins) {
|
||||||
this.expressInstance = this.initApp();
|
|
||||||
this.embarkUiBuildDir = (findUp.sync("node_modules/embark-ui/build", {cwd: embarkPath()}) || embarkPath("node_modules/embark-ui/build"));
|
this.embarkUiBuildDir = (findUp.sync("node_modules/embark-ui/build", {cwd: embarkPath()}) || embarkPath("node_modules/embark-ui/build"));
|
||||||
|
this.expressInstance = this.initApp();
|
||||||
}
|
}
|
||||||
|
|
||||||
public enableLogging() {
|
public enableLogging() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user