Skip to content

Instantly share code, notes, and snippets.

@Michaela-Davis
Created February 13, 2017 00:30
Show Gist options
  • Save Michaela-Davis/fb450e8463ce13e96d986475152cbadc to your computer and use it in GitHub Desktop.
Save Michaela-Davis/fb450e8463ce13e96d986475152cbadc to your computer and use it in GitHub Desktop.
Heroku Deploy
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</IfModule>
{
"name": "silex-heroku-project-name",
"require": {
"php": ">=5.3.0",
"silex/silex": "~1.0@dev"
},
"extra": {
"heroku": {
"document-root": "web",
"index-document": "index.php"
}
}
}
web: vendor/bin/heroku-php-apache2 web/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment