File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ node_modules
11
11
old
12
12
dist /
13
13
.silex /
14
+ silex /
14
15
.env
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import { FsStorage } from './connectors/FsStorage'
34
34
import { Connector } from './connectors/connectors'
35
35
import { ConnectorType } from '../types'
36
36
import { FsHosting } from './connectors/FsHosting'
37
- import { tmpdir } from 'os'
38
37
39
38
/**
40
39
* Config types definitions
@@ -177,13 +176,13 @@ export class ServerConfig extends Config {
177
176
// Add default storage connectors
178
177
if ( ! this . storageConnectors . length ) {
179
178
this . addStorageConnector ( new FsStorage ( null , {
180
- path : process . env . SILEX_FS_ROOT || join ( tmpdir ( ) , '/silex/storage' ) ,
179
+ path : process . env . SILEX_FS_ROOT || join ( process . cwd ( ) , '/silex/storage' ) ,
181
180
} ) )
182
181
}
183
182
// Add default hosting connectors
184
183
if ( ! this . hostingConnectors . length ) {
185
184
this . addHostingConnector ( new FsHosting ( null , {
186
- path : process . env . SILEX_FS_HOSTING_ROOT || join ( tmpdir ( ) , '/silex/hosting' ) ,
185
+ path : process . env . SILEX_FS_HOSTING_ROOT || join ( process . cwd ( ) , '/silex/hosting' ) ,
187
186
} ) )
188
187
}
189
188
}
You can’t perform that action at this time.
0 commit comments