Remove support for launching Heroku locally

This is untested and probably broken
This commit is contained in:
Pierre Rudloff 2020-06-20 14:24:47 +02:00
parent 62dac1e5bb
commit 7d94271a49
3 changed files with 1 additions and 70 deletions

View file

@ -25,7 +25,6 @@
},
"require-dev": {
"consolidation/robo": "^2.1",
"heroku/heroku-buildpack-php": "^162.0",
"php-mock/php-mock-mockery": "^1.3",
"phpro/grumphp": "^0.18.0",
"phpstan/phpstan": "^0.12.25",

46
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "a61a7bc33d1de355e511fe3aa1b6a193",
"content-hash": "5b43d7dd93a519a8edb85623fcffc639",
"packages": [
{
"name": "anam/phantomjs-linux-x86-binary",
@ -2313,50 +2313,6 @@
],
"time": "2016-01-20T08:20:44+00:00"
},
{
"name": "heroku/heroku-buildpack-php",
"version": "v162",
"source": {
"type": "git",
"url": "https://github.com/heroku/heroku-buildpack-php.git",
"reference": "343fa959d4c195beb7febe1996340624baf713b9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/heroku/heroku-buildpack-php/zipball/343fa959d4c195beb7febe1996340624baf713b9",
"reference": "343fa959d4c195beb7febe1996340624baf713b9",
"shasum": ""
},
"bin": [
"bin/heroku-hhvm-apache2",
"bin/heroku-hhvm-nginx",
"bin/heroku-php-apache2",
"bin/heroku-php-nginx"
],
"type": "library",
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "David Zuelke",
"email": "dz@heroku.com"
}
],
"description": "Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku",
"homepage": "https://github.com/heroku/heroku-buildpack-php",
"keywords": [
"apache",
"apache2",
"foreman",
"heroku",
"hhvm",
"nginx",
"php"
],
"time": "2019-09-27T22:17:17+00:00"
},
{
"name": "league/container",
"version": "2.4.1",

View file

@ -113,30 +113,6 @@ you can download it if you enable streaming (see above).
docker run -p 8080:80 rudloff/alltube
```
## Run Heroku locally
You should be able to use `heroku local` like this:
```bash
sudo APACHE_LOCK_DIR=. APACHE_PID_FILE=./pid APACHE_RUN_USER=www-data \
APACHE_RUN_GROUP=www-data APACHE_LOG_DIR=. \
heroku local
```
You might need to create some symlinks before that:
```bash
ln -s /usr/sbin/apache2 /usr/sbin/httpd
ln -s /usr/sbin/php-fpm7.0 /usr/sbin/php-fpm
```
And you probably need to run this in another terminal
after `heroku local` has finished launching `php-fpm`:
```bash
chmod 0667 /tmp/heroku.fcgi.5000.sock
```
## Download 1080p videos from Youtube
Youtube distributes HD content in two separate video and audio files.