db:download task : Read-only file system #31
-
Hi @kszymukowicz, I use deployer-extended-wp-composer with a roots-bedrock setup for all my wp projects and usually everything works nicely. Dev-env is powered by Recently, after an upgrade from As I understand the error, the process failed during the dumps trying to create a dir on the remote server ("mkdir" see error output above) ? But if I look at the dumps folder on the remote server, dumps are created. Everything work fine for Cmd and error output are: dep db:pull production
➤ Executing task db:pull
Any idea or advice ? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
hi The config is now read from Also try to run the command with Could be that this folder is tried to be created locally because for some reason the instance name is wrongly read for local instance. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for your answer! Yes,
Exception trace:
The only thing I see is that I needed to customize the instances names, because of your default changes, and re- namespace Deployer;
require __DIR__ . '/vendor/autoload.php';
new \SourceBroker\DeployerExtendedWordpressComposer\Loader();
set('instance_local_name', 'development');
set('instance_live_name', 'production');
set('default_stage', 'staging');
#(...) If I run +-------------+-------------------------+-------------+-------+------------------------------------------+
| Host | Hostname | Stage | Roles | Deploy path |
+-------------+-------------------------+-------------+-------+------------------------------------------+
| production | prod.mywebsite.ch | production | | /mywebsite/app/wp |
| staging | stage.mywebsite.ch | staging | | /mywebsite/app/wp |
| development | | development | | /Users/xxx/LocalWebsites/mywebsite/app |
+-------------+-------------------------+-------------+-------+------------------------------------------+
Ok. Thanks again for your time. |
Beta Was this translation helpful? Give feedback.
-
You should not touch |
Beta Was this translation helpful? Give feedback.
-
What is the behaviour when you remove |
Beta Was this translation helpful? Give feedback.
-
Ok I didn't know that. So I removed the "set default_instance".
a
|
Beta Was this translation helpful? Give feedback.
-
if i add a
It's strange, because WP_ENV is already defined in .env (and works in Bedrock), and as I can see in EnvDriver.php, it should also works, no ? |
Beta Was this translation helpful? Give feedback.
if i add a
WP_INSTANCE
in .env, in addition ofINSTANCE
..IT WORKS !! (same for production and staging)
It's strange, because WP_ENV is already defined in .env (and works in Bedrock), and as I can see in EnvDriver.php, it should also works, no ?