Roots Discourse

I cant start a multisite+bedrock in local apache without trellis

Hi,

Im starting with bedrock, and im trying to make it multisite, in subdirectories.

Im using Apache without trellis. I have running a single bedrock instalation.

I use this snippet in application.php:

/* Multisite */
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', env('DOMAIN_CURRENT_SITE'));
define('PATH_CURRENT_SITE', env('PATH_CURRENT_SITE') ?: '/');
define('SITE_ID_CURRENT_SITE', env('SITE_ID_CURRENT_SITE') ?: 1);
define('BLOG_ID_CURRENT_SITE', env('BLOG_ID_CURRENT_SITE') ?: 1);

And add to .env:
DOMAIN_CURRENT_SITE=bedrock.wp

And i got this error:
# Error establishing a database connection

Any idea?

i found the solution.

Now Im going to try to show and get access to rest api (multisite)

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