Add heroku local instructions to FAQ (fixes #86)

This commit is contained in:
Pierre Rudloff 2017-01-19 22:10:44 +01:00
parent 181d578019
commit e7dac692c6
1 changed files with 21 additions and 0 deletions

21
FAQ.md
View File

@ -102,3 +102,24 @@ Alltube can rename videos automatically if you enable streaming (see above).
## I want to download a video that isn't available in my country ## I want to download a video that isn't available in my country
If the video is available in the server's country, you can download it if you enable streaming (see above). If the video is available in the server's country, you can download it if you enable streaming (see above).
## How do I run Heroku locally?
You should be able to `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
```