I have deployed a Golang app on digitalocean app platform. The Go app utilizes redis for session management.Everything seems to be running smooth except when I try to login it logs an error sessions: invalid character in cookie name:
which I've come to notice it's due to the absence of redis-server or redis in general as I've tested my local project by shutting down the redis-server and it gives the same error I get on digital ocean app platform. My question is... How can I setup redis on digital ocean when using app platform? Do I install?..How? or I've to pay $15 for managed redis database on digitalocean for just keeping user sessions? Please any advice is appriciated as I'm newbie to digitalocean but I'm pretty familiar with linux so don't fear to advice me choosing my own droplet over app platform if your opinion falls there.
Asked
Active
Viewed 872 times
0

Dilunga the Great
- 677
- 6
- 13
-
Are you using Docker? If yes, then you can create a local redis db using docker composer – Rifat Bin Reza Sep 20 '21 at 02:20
1 Answers
0
Digital Ocean has excellent tutorials on Redis Server install
For example: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04

namizaru
- 646
- 3
- 5
-
1Thanks dude it's a very useful tutorial! But according to my question is that I've deployed my app on digitalocean app platform and not on a droplet. This gives a number of questions on how to install redis server in the scenario where they manage the underlying infrastructure for me i.e I do not I have access to the underlying machine so I could get a chance to install redis or something else? – Dilunga the Great Sep 13 '21 at 22:26
-
Oh. There are hosted Redis services available both from Digital Ocean and other providers ;) – namizaru Sep 14 '21 at 17:58
-
-
As I work for one, I don't feel comfortable steering you in any direction, but a search should be able to provide some results for you to evaluate – namizaru Sep 15 '21 at 19:12