vue dev server with nginx

The Nginx conf is the same for any sock-js site. It can be used for Vue and Angular and Svelte, not sure about React but I’d guess it uses sock-js as well. My dev domain is qxdsladmin.local in this example. /etc/nginx/conf.d/qxdsladmin.local.conf

This location ~ ^/api/v1/.* is a mountpoint for the backend http api, which…

Read Article

nvm upgrade to latest LTS and migrate all installed packages

This command is also in the readme of nvm, however I put it here on my blog so I don’t have to search the readme and previously google for the readme 😉

and then set this version to be the default version

For the record, a link to the readme of nvm

Read Article

There is not a single proper database

I’m so tired of it. I’m using MongoDB and you can store files, great. But the Go driver, the official one sucks. And the mgo driver is abandoned. The official driver is also slow, slower than Postgresql. 3.2ms for querying a dataset of 5k entries and another {“_id”: {“$in”: [“list”, “of”, “objectids”]}} that’s 1-20 long…

Read Article

diesel: Failed with: relation “__diesel_schema_migrations” does not exist

If you’re exporting an existing database with pg_dump and trying to use that exported SQL with diesel and your initial migration, even after diesel setup has been done and get this message: Failed with: relation “__diesel_schema_migrations” does not exist Then you likely have the following line in your postgreSQL dump:

it needs to be…

Read Article

Abwendung von Go und Github – Hin zu Rust und gogs

Dadurch das Google mit gängelt und speziell Ian Lance Taylor von Go mich angreift und mein Github Profil nicht-öffentlich geflaggt hat, durch “gute Beziehungen” zu Github, habe ich beschlossen mich langsam aber stetig von Go abzuwenden und Rust zuzuwenden. 7 Jahre mit Go aber wenn so ein Google Mitarbeiter dich im Visier hat dann greift…

Read Article