Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ots-blog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
ots-blog
Commits
46542267
Commit
46542267
authored
1 year ago
by
James Vasile
Committed by
Tris Haines
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
build pub, rely on build for push
parent
9e4732cd
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Added code for byline to article template
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/build
+7
-2
7 additions, 2 deletions
bin/build
bin/push
+3
-4
3 additions, 4 deletions
bin/push
with
10 additions
and
6 deletions
bin/build
+
7
−
2
View file @
46542267
...
...
@@ -4,6 +4,11 @@ set -e
SCRIPT_DIR
=
$
(
cd
--
"
$( dirname --
"
$
{
BASH_SOURCE
[
0
]}
"
)
"
&>
/
dev
/
null
&&
pwd
)
cd
$
{
SCRIPT_DIR
}
/
..
/
site
pelican
content
echo
Site
generated
and
copied
to
site
/
output
if
[
"
$1
"
=
pub
];
then
pelican
-
s
publishconf
.
py
content
echo
Pub
site
generated
and
copied
to
site
/
output
else
pelican
content
echo
Dev
site
generated
and
copied
to
site
/
output
fi
This diff is collapsed.
Click to expand it.
bin/push
+
3
−
4
View file @
46542267
...
...
@@ -3,8 +3,7 @@
set
-e
SCRIPT_DIR
=
$(
cd
--
"
$(
dirname
--
"
${
BASH_SOURCE
[0]
}
"
)
"
&> /dev/null
&&
pwd
)
cd
${
SCRIPT_DIR
}
/../site
pelican
-s
publishconf.py content
cd
output
rsync
-rvzP
*
root@opentechstrategies.com:/var/www/blog
${
SCRIPT_DIR
}
/build pub
cd
${
SCRIPT_DIR
}
/../site/output
rsync
-rvzP
--delete
*
root@opentechstrategies.com:/var/www/blog
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment