Assets precompilation in production environment
I have a GitLab Omnibus package installed on my server. Using GDK, I developed additional functionality that modifies some existing front-end files + created some new ones.
Now I need it all on my server. Therefore, I ran the RAILS_ENV=production bundle exec rake gitlab:assets:compile command locally and uploaded contents of the public/assets folder to the corresponding folder on the server. And restarted GitLab, of course.
But, various errors related to the front-end began to arise, styles are broken in several places, etc. For example, changes in merge requests are not highlighted, or issues scrolling is broken on a boards page. But this is in no way caused by my changes.
So, I've tried to compare the original public/assets folder, generated during GitLab installation, with my new locally generated. And the difference in size is quite big: the original assets are about 322 MB, but mine are only 198 MB. There are many files in Omnibus GitLab public/assets folder that were not locally created during the precompilation process.
My changes are based on the origin master branch. I tried to reinstall GDK and repeat all my changes from scratch on the most recent master-code, but problems still remain.
How can I properly precompile assets locally? Thanks in advance.