Bedrock Heroku Setup


I am new to bedrock and try to deploy app with heroku and wroking fine as per below.
Can you please guide me if there will any issue with it or better workflow?


  • In CI I did composer update for main folder and theme folder
  • Then for sage Yarn Install and production build.
  • Deploy to heroku

On heroku I face issue with .htaccess file removed on each build that I fixed by below setting.

Create apache_app.conf file.
DirectoryIndex index.php index.html index.htm

<Directory "${DOCUMENT_ROOT}">
	# 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]
	# END WordPress

And Procfile for default folder for entry and specified above conf file.

web: vendor/bin/heroku-php-apache2 -C apache_app.conf web/


1 Like