Skip to content

Commit d17fd69

Browse files
committed
contrib
1 parent ba8bd47 commit d17fd69

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

contrib/systemd/manager.service

Whitespace-only changes.

contrib/systemd/setup/strapi/setup.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
sudo apt update
4+
sudo apt upgrade -y
5+
6+
sudo apt install libpng-dev build-essential -y
7+
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
8+
sudo apt install nodejs -y
9+
10+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
11+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
12+
13+
sudo apt update
14+
sudo apt install yarn -y
15+
16+
# verify setup
17+
node -v && npm -v && yarn -v
18+
19+
# add strapi user
20+
sudo adduser --shell /bin/bash --disabled-login --gecos "" --quiet strapi
21+
22+
sudo mkdir /srv/content
23+
24+
sudo chown strapi:strapi /srv/content
25+
26+
# database
27+
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-18-04#step-4-%E2%80%94-creating-a-new-database
28+
29+
# app
30+
cd /srv/content
31+
sudo su strapi && git clone https://github.com/gopheracademy/manager
32+
cd manager
33+
# temporary
34+
sudo su strapi && git checkout cms
35+
36+

contrib/systemd/strapi.service

Whitespace-only changes.

0 commit comments

Comments
 (0)