Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 3e51313

Browse files
committed
wip
1 parent e549b24 commit 3e51313

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/server/php.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ function getDefaultEnvironmentVariables(secret, apiPort) {
166166
return {
167167
APP_ENV: process.env.NODE_ENV === 'development' ? 'local' : 'production',
168168
APP_DEBUG: process.env.NODE_ENV === 'development' ? 'true' : 'false',
169+
LARAVEL_STORAGE_PATH: storagePath,
169170
NATIVEPHP_STORAGE_PATH: storagePath,
170171
NATIVEPHP_DATABASE_PATH: databaseFile,
171172
NATIVEPHP_API_URL: `http://localhost:${apiPort}/api/`,
@@ -209,7 +210,9 @@ function serveApp(secret, apiPort, phpIniSettings): Promise<ProcessResult> {
209210

210211
// Make sure the storage path is linked - as people can move the app around, we
211212
// need to run this every time the app starts
212-
// callPhp(['artisan', 'storage:link', '--force'], phpOptions, phpIniSettings)
213+
// if (! runningSecureBuild()) {
214+
// callPhp(['artisan', 'storage:link', '--force'], phpOptions, phpIniSettings)
215+
// }
213216

214217
// Migrate the database
215218
if (store.get('migrated_version') !== app.getVersion() && process.env.NODE_ENV !== 'development') {

0 commit comments

Comments
 (0)