Allow env to come through nginx workers

This commit is contained in:
Kai Hendry
2016-08-30 22:29:20 +08:00
parent 51e944b455
commit e93f21c4e1
2 changed files with 4 additions and 6 deletions

View File

@@ -20,6 +20,8 @@ ADD nginx.conf /etc/nginx/nginx.conf
ADD php-fpm.ini /etc/supervisor.d/php-fpm.ini ADD php-fpm.ini /etc/supervisor.d/php-fpm.ini
ADD nginx.ini /etc/supervisor.d/nginx.ini ADD nginx.ini /etc/supervisor.d/nginx.ini
RUN echo "clear_env = no" >> /etc/php/php-fpm.conf
RUN mkdir -p /srv/http/u RUN mkdir -p /srv/http/u
RUN chmod -R 777 /srv/http/u RUN chmod -R 777 /srv/http/u

View File

@@ -7,13 +7,9 @@ Set `access_token` in envfile. You should be able to get it from [creating a new
curl -X POST "https://api.twitter.com/oauth2/token" -d "grant_type=client_credentials" -u consumerKey:consumerSecret curl -X POST "https://api.twitter.com/oauth2/token" -d "grant_type=client_credentials" -u consumerKey:consumerSecret
echo 'access_token=secret' > envfile echo 'access_token=secret' > envfile
docker run -d --name greptweet --env-file envfile -p 8888:80 hendry/greptweet docker run -d --restart=unless-stopped --name greptweet --env-file envfile -p 8888:80 hendry/greptweet
# Maintenance ## Maintenance
Running it again:
docker start greptweet
Backing it up: Backing it up: