Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Sep 7, 2024
1 parent e549b24 commit 3e51313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/php.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ function getDefaultEnvironmentVariables(secret, apiPort) {
return {
APP_ENV: process.env.NODE_ENV === 'development' ? 'local' : 'production',
APP_DEBUG: process.env.NODE_ENV === 'development' ? 'true' : 'false',
LARAVEL_STORAGE_PATH: storagePath,
NATIVEPHP_STORAGE_PATH: storagePath,
NATIVEPHP_DATABASE_PATH: databaseFile,
NATIVEPHP_API_URL: `http://localhost:${apiPort}/api/`,
Expand Down Expand Up @@ -209,7 +210,9 @@ function serveApp(secret, apiPort, phpIniSettings): Promise<ProcessResult> {

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

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

0 comments on commit 3e51313

Please sign in to comment.