Im playing around with Bedrock with the purpose of using it for all future projects.
The whole setup and capistrano production deployments work flawless… But.
I just cant seem to figure out the mystery of either setting the vhost to the right directory or setup symlink right.
Ive tried changing apache vhost config to path/shared/web like this:
DocumentRoot /var/www/html/shared/web
<Directory "/var/www/html/shared/web">
Options FollowSymLinks
AllowOverride All
</Directory>
But that doesnt have any affect - its still just a blank screen. Ive checked and the db connection and im not getting any errors there.
I’ve also changed the deploy.rb to
set :linked_files, fetch(:linked_files, []).push('.env', 'web/.htaccess')
and created a htaccess file within shared/web:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress