Commit 5870472a authored by Alain M. Lafon's avatar Alain M. Lafon

doc: Manual build and deployment

parent 241feca8
Pipeline #7203 failed with stage
in 1 minute and 25 seconds
#!/bin/sh
function new-post() {
# Snake Case, Lower Case and remove non alphanumeric characters
# (except for `.`, `-`, and `_`)
NAME=$(echo "$*" | sed -e "s/ /_/g" | sed -e 's/\(.*\)/\L\1/' | sed "s/[^[:alpha:].-_]//g")
TARGET=resources/posts/$(date -I)_$NAME.md
TITLE="$*" sh ./.templates/post.md.sh > $TARGET
echo "Created $TARGET"
}
function new-project() {
NAME=$(echo "$*" | sed -e "s/ /_/g")
TARGET=manifest/projects/$NAME.yml
TITLE=$NAME sh ./.templates/project.yml.sh > $TARGET
echo "Created $TARGET"
}
echo
echo "Welcome $(whoami)!"
echo
echo " new-post <title>"
echo " new-project <name>"
echo " boot dev"
echo
echo " sudo update-alternatives --set java /usr/lib/jvm/jdk-8-oracle-x64/jre/bin/java"
echo " sudo update-alternatives --config java # Select JDK 8"
echo
......@@ -2,3 +2,9 @@
perun: Dockerfile
docker build -t twohundredok/perun .
docker push twohundredok/perun
build:
boot prod
deploy:
time lftp -e "mirror -R ./target/public/ .; exit" -u $$FTP_USER,$$FTP_PASSWORD $$FTP_HOST
......@@ -19,7 +19,15 @@ boot build
*** Option 1
Run =build boot= and copy =target/public= to the FTP
Run =build boot= and copy =target/public= to the FTP:
#+BEGIN_SRC shell
make build
make deploy
#+END_SRC
Prerequisite are the FTP credentials (can be obtained via =sourceme
install=).
*** Option 2
......
Markdown is supported
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