Hi All,
I wanted to make a suggestion for the software.
I have been working on installing the software through Laravel Forge. As a larger discussion point, I am working to integrate this app into a Laravel app, and intend to publish an up-to-date guide with my findings once done.
Now, onto the issue at hand: Repository structure.
The way you have to deploy applications to Forge is through a git repo -- no problem. I just initialized my repo after installing flarum. Suggestion: Add .gitignore into core repo that ignores /vendor folder. I quickly did this and deployed to the server.
After deploying to my server, I was getting a nasty file_contents_missing error. Not sure if it was file_contents_missing but it was file_contents_ somthing
After about an hour of troubleshooting, I realized the error: my "storage" directory and my "public/assets" directory were missing. Now this may have been obvious to more advanced server admins, but this was a really tough issue for me to diagnose. Please note, my nginx config had been in place and I was doing a clean install -- so there was really very little for me to troubleshoot.
SOLUTION: Since GIT does NOT track empty directories, you have to MAKE it track your directory if it's empty. To do this, I added an empty .gitignore file to every directory in "storage" and in my "public/assets" directory.
BAM! Solved! Installation proceeded as normal from there 🙂
I would recommend adding the .gitignore files to the default repo, to help support an installation from a git repo. Happy to hear feedback on this suggestion. Thanks for the great software!