Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
Commits on Source (2)
pre rebuilding site Sun Sep 2 04:32:14 CEST 2018
· 1cac7afd
Jon Richter
authored
Sep 02, 2018
1cac7afd
post rebuilding site Sun Sep 2 04:32:14 CEST 2018
· cadab113
Jon Richter
authored
Sep 02, 2018
cadab113
Hide whitespace changes
Inline
Side-by-side
deploy
0 → 100755
View file @
cadab113
#!/bin/bash
echo
-e
"
\0
33[0;32mDeploying updates to GitLab and Dokku...
\0
33[0m"
# Commit changes.
msg
=
"rebuilding site
`
date
`
"
if
[
$#
-eq
1
]
then
msg
=
"
$1
"
fi
git add
.
git commit
-m
"pre
$msg
"
# Build the project.
rm
-rf
public/
*
hugo
# if using a theme, replace with `hugo -t <YOURTHEME>`
# Go To Public folder
cd
public
# Add changes to git.
git add
.
git commit
-m
"
$msg
"
# Push source and build repos.
git push origin public
git push dokku public:master
# Come Back up to the Project Root
cd
..
git add
.
git commit
-m
"post
$msg
"
git push
public
@
deb67150
Compare
59dba0b4
...
deb67150
Subproject commit
59dba0b48e019a96b358db3aee2dada08f764ae
2
Subproject commit
deb671503e9704282f3589f920c721c6a888d2f
2