Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
All old project get connected to the last mysql database created
After a long search in many platform for someone who have same issue but i didn’t find any solution....
i have deployed 2 express api in same droplet using nginx blocks following this tutorial who is really great and thanks to their authors.
Now when i end deploying first project everything work fine but when i do same for the other project my second project work fine also but my first project get connected automatically to the second database created.
my .env file on the first project look like this.
my .env file on the second project look like this.