Confronta commit
2 Commit
eb2f86b7d7
...
de72565d52
| Autore | SHA1 | Data | |
|---|---|---|---|
| de72565d52 | |||
| fc963069a2 |
3
.gitignore
esterno
3
.gitignore
esterno
@@ -1,2 +1,3 @@
|
|||||||
*.sublime*
|
*.sublime*
|
||||||
_drafts
|
landing.jennakuzma.com/
|
||||||
|
landing.jennakuzma.com.bak/
|
||||||
|
|||||||
1
blog.bryanroessler.com/.gitignore
esterno
1
blog.bryanroessler.com/.gitignore
esterno
@@ -4,6 +4,7 @@ _site
|
|||||||
.vagrant
|
.vagrant
|
||||||
.bundle
|
.bundle
|
||||||
vendor/bundle
|
vendor/bundle
|
||||||
|
_drafts
|
||||||
|
|
||||||
# general
|
# general
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -29,14 +29,14 @@ For larger websites, I prefer using nested git repositories to simplify website
|
|||||||
By combining the subgit strategy with some structured naming conventions it is possible to push, build, and deploy multiple subdomains or sites using a single git push from the client!
|
By combining the subgit strategy with some structured naming conventions it is possible to push, build, and deploy multiple subdomains or sites using a single git push from the client!
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
~~~
|
~~~bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
"/var/lib/git/gogs/gogs" hook --config='/var/lib/git/gogs/conf/app.ini' post-receive
|
"/var/lib/git/gogs/gogs" hook --config='/var/lib/git/gogs/conf/app.ini' post-receive
|
||||||
|
|
||||||
GIT_DIR="$(pwd)"
|
GIT_DIR="$(pwd)"
|
||||||
TMP_GIT_DIR="/tmp/${GIT_DIR##*/}"
|
TMP_GIT_DIR="/tmp/${GIT_DIR##*/}"
|
||||||
|
|
||||||
if [ ! -d "${TMP_GIT_DIR}" ]; then
|
if [[ ! -d "${TMP_GIT_DIR}" ]]; then
|
||||||
git clone "${GIT_DIR}" "${TMP_GIT_DIR}"
|
git clone "${GIT_DIR}" "${TMP_GIT_DIR}"
|
||||||
cd "${TMP_GIT_DIR}"
|
cd "${TMP_GIT_DIR}"
|
||||||
else
|
else
|
||||||
@@ -48,10 +48,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for site in *.*/; do
|
for site in *.*/; do
|
||||||
[ ! -d /var/www/${site} ] && mkdir -p /var/www/${site} && chgrp -R /var/www/${site} && chmod g+s /var/www/${site}
|
[[ ! -d "/var/www/${site}" ]] && mkdir -p "/var/www/${site}" && chgrp -R "/var/www/${site}" && chmod g+s "/var/www/${site}"
|
||||||
pushd ${site}
|
pushd "${site}"
|
||||||
bundle install --deployment
|
bundle install --deployment
|
||||||
bundle exec jekyll build --destination /var/www/${site}
|
bundle exec jekyll build --destination "/var/www/${site}"
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Fai riferimento in un nuovo problema
Block a user