Skip to content

Instantly share code, notes, and snippets.

@fdnklg
Created December 12, 2019 22:42
Show Gist options
  • Save fdnklg/e12f733c24e389a614796a728136e4d2 to your computer and use it in GitHub Desktop.
Save fdnklg/e12f733c24e389a614796a728136e4d2 to your computer and use it in GitHub Desktop.

How to deploy the headless cms strapi on your uberspace 7

This summary describes the collection of necessary tutorials to host strapy on your uberspace

1. Install mongodb on your uberspace

just follow this well written tutorial.

2. Install strapi and pm2 within a subdirectory of your public html folder on your uberspace

take just a segment of this tutorial. be sure to use the before defined credentials (like, ip address, port, username e.g. of your freshly created database)

3. Define a webdomain under which your api shall be accessible

just follow this tutorial

4. Use the web backends function to connect your installed cms with the defined webdomain

a list of detailed steps can be found here

Your cms should be now available under https://subdomain.yourdomain.com/admin

@GuidaGG
Copy link

GuidaGG commented Sep 27, 2020

Hey, first of all, thank you a lot for this tutorial.
I tried to follow it but could not make it work. Could I make some questions?
On point 2, until when should I follow the tutorial you provided? and what is the default name for the mongo db , is it 'admin'?
on point 4, to where should I point the backend? "mydomain/admin" and then port 1337?

Thank you again

@kastnerp
Copy link

In case anybody is reading this, you need node 14 to run strapi on uberspace.

uberspace tools version use node 14

Also, use this for bullet point 4.

uberspace web backend set api.domain.com --http --port 1337

The rest can be followed from the notes above.

@heroheman
Copy link

To anyone new to strapi. Strapi V4 deprecated MongoDB, have a look at MySQL/MariaDB or PostgreSQL
https://manual.uberspace.de/en/database-mysql.html
https://manual.uberspace.de/database-postgresql/

@jnsprnw
Copy link

jnsprnw commented Nov 17, 2022

I wrote a tutorial on how I got it running lately: https://gist.github.com/jnsprnw/be73def30e93ed79a3ecfd7d06b29da7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment