Based on the very little information you've given here, I would recommend wiping the whole thing and starting over.
While you're doing that, I suggest running it in docker. It's a lot easier to contain an app with docker, because it runs in a container.