Ind.ie is now
Small Technology Foundation
.
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Site
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ar.al
Site
Commits
8001f992
Verified
Commit
8001f992
authored
Jul 05, 2019
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update all scripts to use Site.js
parent
0b21a379
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
15 deletions
+18
-15
.gitignore
.gitignore
+2
-1
config.toml
config.toml
+1
-1
deploy
deploy
+5
-3
develop
develop
+8
-8
live
live
+2
-2
No files found.
.gitignore
View file @
8001f992
.DS_Store
.DS_Store
*.*~
*.*~
\ No newline at end of file
dist/
config.toml
View file @
8001f992
baseURL
=
"https://ar.al/"
baseURL
=
"https://ar.al/"
languageCode
=
"en-us"
languageCode
=
"en-us"
title
=
"Aral Balkan"
title
=
"Aral Balkan"
publishDir
=
".
./liv
e"
publishDir
=
".
/dist/sit
e"
PygmentsCodeFences
=
true
PygmentsCodeFences
=
true
PygmentsStyle
=
"friendly"
PygmentsStyle
=
"friendly"
enableGitInfo
=
true
enableGitInfo
=
true
...
...
deploy
View file @
8001f992
...
@@ -4,12 +4,14 @@
...
@@ -4,12 +4,14 @@
#
#
# ar.al single-shot deployment script.
# ar.al single-shot deployment script.
#
#
# Uses Hugo (gohugo.io) and
Indie Web Server (ind.ie/web-server
).
# Uses Hugo (gohugo.io) and
Site.js (https://sitejs.org
).
#
#
################################################################################
################################################################################
# Build the site
# Build the site
hugo
--baseURL
=
https://ar.al
--destination
=
../build
# (The destination is a subdirectory of the dist folder because we also have
# a site archive that we want to deploy and the easie)
hugo
--baseURL
=
https://ar.al
# Deploy it
# Deploy it
web-server
sync
../build/ ar.al
--account
=
ubuntu
--folder
=
site
--exit-on-sync
site dist
--sync-to
=
ar.al
--exit-on-sync
local
→
develop
View file @
8001f992
#!/bin/bash
#!/bin/bash
# Runs just Hugo server for local authoring
# (changes will not be deployed or live streamed over the
# peer-to-peer web. For that, use the ./live script.)
# Start Indie Web Server to proxy the Hugo server to https://localhost
web-server proxy localhost:1313 &
# Start Hugo server.
# Start Hugo server.
#
#
# The baseURL and appendPort flags are set to overwrite the default behaviour
# The baseURL and appendPort flags are set to overwrite the default behaviour
...
@@ -14,4 +7,11 @@ web-server proxy localhost:1313 &
...
@@ -14,4 +7,11 @@ web-server proxy localhost:1313 &
# as localhost:<port> regardless of the setting of baseURL in the config.toml
# as localhost:<port> regardless of the setting of baseURL in the config.toml
# file. Since we do not have a separate build/deploy phase to the live server,
# file. Since we do not have a separate build/deploy phase to the live server,
# we want the site as it would exist on the server to exist on the client.
# we want the site as it would exist on the server to exist on the client.
hugo server
--buildDrafts
--renderToDisk
--baseURL
=
https://ar.al
--appendPort
=
false
hugo server
--buildDrafts
--renderToDisk
--baseURL
=
https://ar.al
--appendPort
=
false
&
# Runs just Hugo server for local authoring
# (changes will not be deployed or live streamed over the
# peer-to-peer web. For that, use the ./live script.)
# Start Indie Web Server to proxy the Hugo server to https://localhost
site :1313
live
View file @
8001f992
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
trap
"exit"
INT TERM ERR
trap
"exit"
INT TERM ERR
trap
"kill 0"
EXIT
trap
"kill 0"
EXIT
# Start
Indie Web Server
in the backgroun to sync the live folder to my site
# Start
Site.js
in the backgroun to sync the live folder to my site
# and also proxy hugo server to https://localhost for local development with live reload.
# and also proxy hugo server to https://localhost for local development with live reload.
web-server
sync
../live/ ar.al
--account
=
ubuntu
--folder
=
site
--proxy
=
localhost:1313
&
site :1313
--sync-to
=
ar.al
&
# Start Hugo server.
# Start Hugo server.
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment