Update: build is passing. Now configure Envoyer to not deploy on push, but instead wait for webhook call from Chipper CI.
Not yet working for HadCoffee staging site. The clone and setup fails because ‘mike’ user that I am connecting with needs to use sudo
to interact with the www-data files. Envoyer doesn’t sudo the commands.
Not sure if my Ubuntu users are incorrect, or if Envoyer should be using a different user that can do its work without sudo. Probably the latter.
Changed project to be owned and group of mike, which Envoyer uses. Now it can deploy.
I did have to manually make storage (symlinked) belong to www-data so Nginx can write there.
Now just need npm/node to work. I really don’t know why it isn’t, but it’s stopping me from building the CSS & JS.
npm install worked now that it’s owned by mike.
Potential remaining issues to test with future deployments:
- Do Frontend assets build now?
- Is .env maintained? Was I right to create the file?
- Are file uploads, and S3 push working?
General question: How do DB migrations work in production?