Skip to content

Commit

Permalink
add ability to edit page on github
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlok committed Apr 7, 2016
1 parent d80c987 commit 0d45fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/post/docker-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ VOLUME /etc/nginx/conf.d

{{<highlight nginx "style=friendly">}}
# в основном контексте, чтобы пробросить переменную к воркерам
env SLACKIN\_PORT\_3000\_TCP\_ADDR;
env SLACKIN_PORT_3000_TCP_ADDR;
# в контексте http, чтобы заюзать
perl\_set $slackin 'sub { return $ENV{"SLACKIN\_PORT\_3000\_TCP\_ADDR"}; }';
perl_set $slackin 'sub { return $ENV{"SLACKIN_PORT_3000_TCP_ADDR"}; }';
{{< / highlight >}}

Попробовал внести эти изменения и оказалось что контейнер с nginx, который берёт волюмы с другого контейнера не рестартуется когда тот контейнер меняется и передеплаивается (кстати, сама по себе пауза между сборкой контейнера и его передеплоем может быть больше двух минут).
Expand Down
1 change: 1 addition & 0 deletions themes/angels-ladder/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h1>{{ .Title }}</h1>
{{ range .Params.tags }}
#<a href="/tags/{{ . | urlize }}">{{ . }}</a>&nbsp;
{{ end }}
<a href="https://github.com/ctrlok/ctrlok.com/edit/master/content/{{ .File.Path }}"> Edit on github</a>
</div>
</div>
<article>
Expand Down

0 comments on commit 0d45fca

Please sign in to comment.