Skip to content

Instantly share code, notes, and snippets.

View vogelino's full-sized avatar
🦜

Lucas Vogel vogelino

🦜
View GitHub Profile
@jnsprnw
jnsprnw / strapi-on-uberspace.md
Last active March 2, 2024 13:28
Tutorial on how to install Strapi on Uberspace

Strapi on Uberspace

Some people had problems building Strapi on Uberspace since it will kill your procress when it uses more than 1.5GB of RAM. I had the problem with some versions of Strapi, but the current (4.5) run through without any problems.

⚠️ Notice that you need to run Node version 14 on your Uberspace to run Strapi (uberspace tools version use node 14).

1. Database (Postgres)

I run into problems when running Postgres on Uberspace and using it for Strapi. (Something with pooling) And since I’m no expert in Postgres I decided to switch to Supabase’s free plan. This also saves Uberspace some ressources. If you want to run Postgres on Uberspace, follow this tutorial.

So for Supabase, first create an account and a new database/project. Next, go to Project Settings/Database. You find all the credetials there. Save them for later.

@dnsos
dnsos / debug-next-js-router.tsx
Created August 3, 2022 09:46
Debugging the Next.js route with router events (WIP, ignore for now)
const router = useRouter()
useEffect(() => {
const handleStart = (url: string): void => {
console.log(`Loading: ${url}`)
}
const handleError = (err, url): void => {
//console.log(err)
console.log(`Cancelled: ${url}`)
}

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)

@ff6347
ff6347 / .babelrc
Last active February 8, 2016 12:52
{
"presets": [
"es2015"
]
}
@rxaviers
rxaviers / gist:7360908
Last active June 29, 2024 18:36
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@diogomoretti
diogomoretti / fonts.styl
Last active November 20, 2019 06:37
Stylus mixin @font-face
// Fonts mixin
font-url(file)
return '../fonts/' + file
webfont(family, file, hack-chrome-windows = false, weight = 'normal')
@font-face
font-family family
src url(font-url(file + '.eot'))
src url(font-url(file + '.eot?#iefix')) format('embedded-opentype'),
url(font-url(file + '.woff')) format('woff'),