Skip to content

Commit 4b428fa

Browse files
authored
Merge pull request #213 from EasyEngine/add/staging
Add staging env for mailhog
2 parents 6f53c9a + e1bd40b commit 4b428fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WordPress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ private function create_site( $assoc_args ) {
10701070
\EE::runcommand( 'cron create ' . $this->site_data['site_url'] . " --user=www-data --command='wp cron event run --due-now' --schedule='$cron_interval/10 * * * *'" );
10711071

10721072
$env_type = \EE::get_runner()->config['env'];
1073-
if ( ! empty( $env_type ) && in_array( $env_type, [ 'develop', 'development', 'local' ] ) ) {
1073+
if ( ! empty( $env_type ) && in_array( $env_type, [ 'develop', 'development', 'local', 'staging' ] ) ) {
10741074
\EE::log( 'Enabling mailhog as this is a ' . $env_type . ' server.' );
10751075
\EE::runcommand( 'mailhog enable ' . $this->site_data['site_url'] );
10761076
}

0 commit comments

Comments
 (0)