I have a Strapi backend project with NextJS frontend. I am planning on self-hosting my application on the French Gandi.net web hosting platform. I chose to have my backend’s DB in MySQL due to it’s wide support on hosting platforms. I have not yet purchased a web hosting deal with Gandi because I have a few questions and ponders:
Strapi is a NodeJS application, correct right? It’s 100% Javascript so I should be looking at how Gandi handles hosting on NodeJS applications, like this guide here:
I feel like I could go with the NodeJS tutorial and setup the MySQL connection like it provides in the NodeJS guide, but I was wondering if anyone who would happen to be in the know. Is there something vital I am missing that’s exclusive to the Strapi Platform? Like a missing piece that could break or make my Gandi option.
FYI I’ve been using Strapi for about 5 days, but I set it up on a DigitalOcean machine with these parameters: 2 GB Memory / 25 GB Disk / Ubuntu 18.04.3 (LTS) x64.
So until the host is capable of running at least Node 14.x, you should be good to go, and some db (check the GitHub link) from the past 4-5 years, you should be good to go!
I am pondering what is the strapi() function suppose to hold on itself for arguments? Is the commented object there just as an demonstration or what is it suppose to contain?
You probably want to put the configuration values into config/database.ts or config/{env}/{environemtnName}/database.ts if you use different environments.