Roots Discourse

Migrate Trellis Bedrock to Bedrock on Valet

When I try to valet link site.test inside the site directory of a Trellis, Bedrock and Sage 8 setup I get

wp valet link domain.test
PHP Fatal error:  Uncaught Error: Class 'Dotenv\Environment\DotenvFactory' not found in /Users/jasper/.wp-cli/packages/vendor/illuminate/support/helpers.php:646
Stack trace:
#0 /Users/jasper/code/ env('WP_ENV')
#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()'d code(7): require_once('/Users/jasper/c...')
#2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169): eval()
#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1130): WP_CLI\Runner->load_wordpress()
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
#7 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
#8 /usr/local/bin/wp(4) in /Users/jasper/.wp-cli/packages/vendor/illuminate/support/helpers.php on line 646

I could just do a wp valet new site --project=bedrock and move all files in but thought I could “just” convert / work with the site setup.

Does anyone have a recommended way to move a setup from Trellis to Valet in which the site trellis directory setup inside project folder can be kept?


This topic was automatically closed after 42 days. New replies are no longer allowed.