personal_website
This commit is contained in:
25
scripts/10_personal_website.sh
Normal file
25
scripts/10_personal_website.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v0.150.1/hugo_extended_0.150.1_linux-amd64.tar.gz
|
||||
|
||||
mkdir /opt/hugo
|
||||
tar -C /opt/hugo -xzf hugo_extended_0.150.1_linux-amd64.tar.gz
|
||||
ln -s /opt/hugo/hugo /usr/bin/hugo
|
||||
|
||||
git clone --depth 1 --recurse-submodules https://git.petrovv.com/nikola/personal_website.git
|
||||
cd personal_website
|
||||
bun i
|
||||
./build.sh
|
||||
|
||||
mv output/ /root/personal_website/
|
||||
|
||||
cd ..
|
||||
rm -rf personal_website
|
||||
|
||||
cd ..
|
||||
cp private/mydb.sqlite server:/root/personal_website/
|
||||
cp files/my-app.service /etc/systemd/system/my-app.service
|
||||
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable my-app
|
||||
systemctl start my-app
|
||||
|
Reference in New Issue
Block a user