mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
Allow env to come through nginx workers
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user