Commit 32c9f6b5 authored by jon r's avatar jon r
Browse files

update deployment instructions, closes #20

Here we include updates on deployment patterns that we found with

- https://lab.allmende.io/solidbase/website/blob/master/.gitmodules#L4-6
- https://lab.allmende.io/solidbase/website/blob/master/deploy

The README has been updated accordingly.
parent 39084f54
......@@ -3,8 +3,7 @@
url = git@lab.allmende.io:ecobytes/commons/hugo-theme-ecoprey.git
[submodule "public"]
path = public
url = git@lab.allmende.io:degrowth/degrowth.net.git
branch = public
url = dokku@apps.allmende.io:degrowth.net
[submodule "assets/icons"]
path = content/icons
url = git@lab.allmende.io:allmende/software-iconography.git
......@@ -4,27 +4,33 @@ This is the source code for the Degrowth.net landing page.
## Dependencies
- Hugo Extended
i.e. as a Snap package https://gohugo.io/getting-started/installing/#linux
- Node.js, ideally via nvm.sh
- PostCSS
`npm install`
- [Hugo Extended](https://gohugo.io/getting-started/installing/#linux)
- Node.js, ideally via [nvm.sh](http://nvm.sh)
- PostCSS, available after `npm install`
## Submodules
This repository uses three submodules:
- [`content/icons`](https://lab.allmende.io/allmende/software-iconography)
- `public` which links with the live website at https://degrowth.net
- [`themes/ecoprey`](https://lab.allmende.io/ecobytes/commons/hugo-theme-ecoprey)
Run these commands to update metadata and retrieve contents.
```
git submodule sync
git submodule update --init --recursive --remote
```
## Dokku Deployment
These two steps are also neccessary, if an update to the `.gitmodules` occurs.
## Deployment
Initiatilise the Dokku application
To deploy the site to the default location, issue:
```
cd public
git remote add dokku dokku@apps.allmende.io:degrowth.net
cd -
./deploy
```
## Authors
......
......@@ -12,7 +12,7 @@ git add .
git commit -m "pre $msg"
# Build the project.
cd public && git checkout public && cd -
cd public && git checkout master && cd -
rm -rf public/*
hugo # if using a theme, replace with `hugo -t <YOURTHEME>`
......@@ -24,8 +24,8 @@ git add .
git commit -m "$msg"
# Push source and build repos.
git push origin public
git push dokku public:master
git push
# Come Back up to the Project Root
cd ..
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment