diff --git a/Dockerfile b/Dockerfile index 15d4e06..30fa970 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,8 @@ ADD nginx.conf /etc/nginx/nginx.conf ADD php-fpm.ini /etc/supervisor.d/php-fpm.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 chmod -R 777 /srv/http/u diff --git a/README.md b/README.md index 9cdc7bf..d9adf05 100644 --- a/README.md +++ b/README.md @@ -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 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 - -Running it again: - - docker start greptweet +## Maintenance Backing it up: