Closed dwitvliet closed 4 years ago
Ok I will add documentation.
RE: git repositories on the server - Yeah we should set it up like that. That was the setup for the nemanode_test folder, but I don't recall why the prod version didnt use the git repository. Also, I do recall npm run build-prod
being really slow on the godady server, so that is why I used rsync on the dist folder after building it on my machine. It might be better after upgrading node.
Thanks! And cool, we should set it up that way then. Is this something you could easily do? Then I would be more comfortable updating the server when small bug-fixes have to be implemented. If the server turns out to be extremely slow for building the app, we can always have GitHub actions build the dist folder automatically and then just pull it directly from git. I wouldn't worry about setting GitHub actions up now, but maybe sometime down the road.
Related #42
@d2fong Is there any reason that we don't just have the repository loaded into
public_html
and then just dogit pull
,npm install
(if changes to package.json),npm run populate-database
(if changes to the database), andnpm run build-prod
? That seems simpler than running rsync.