How do I use Strapi?
- In the panel, open My servers and click your server.
- On the Overview tab, wait for the App row to say "Strapi is ready". The page refreshes itself.
- Open the link in the Panel address row and enter the details from the Email and Password rows.
Adding a content type
Strapi runs in production mode, where the Content-Type Builder is read-only. Prepare new content types in development mode on your computer and bring the code to the server. Connect over SSH, then:
su - app
cd ~/proje
npm run build
pm2 restart uygulama
Good to know
- The database is SQLite:
~/proje/.tmp/data.db. For PostgreSQL, changeconfig/database.ts. - Settings are in the
~/proje/.envfile.
Your own domain
- Point your domain's A record to your server's IP address.
- As root, replace the old name everywhere:
sed -i 's/OLD_NAME/yourdomain.com/g' /etc/caddy/Caddyfile.OLD_NAMEis the part afterhttps://in the address shown in the panel. - Run
systemctl reload caddy.
Caddy gets and renews the certificate by itself.
Also write your domain into PUBLIC_URL in the .env file. Only 80, 443 and 22 for SSH are open to the outside.
No server yet? Order a server with Strapi installed: you choose the size and pay for what you choose.
Thanks for your feedback!