Pure proxy server to render bemjson with bemhtml onto plain html and so on (BEM)
with configurations for heroku
cloud platform.
- Git
- Heroku account
- Heroku CLI
- Node.js
- PHP
- Composer
To use it locally:
npm i
composer install
heroku local # to run app locally, now you can edit web/index.php file
To deploy it on Heroku you need to create an app there:
heroku apps:create --region eu my-awesome-php-app # this will create an app in heroku
heroku git:remote --app my-awesome-php-app # this will add remote in you git
And then just push to redeploy:
git push heroku master
-
Heroku detects buildpack by defualt automatically. To use this package you have to add it manually:
heroku buildpacks:set heroku/nodejs heroku buildpacks:add heroku/php
-
Heroku starts just 1 web app and provide only 1 port. Because of that
nginx
withphp-fpm
starting insidenodejs
app.
MIT