Building and Deployment
Notes about the build and deploy processes will live here.
rq-api​
We use yarn for publishing and deploying the apps we run on ec2; some are being migrated to Vercel/Next.js.
Commands (using svr-api as the main example)​
>yarn stevens​
This will ask you what apps to deploy to where; or what apps to run locally. Just follow the prompts.
>yarn publish:beta --force-publish=@evdy/svr-api ​
This will publish the api to our private everdays api for DEV .. dev uses the latest beta
>lerna publish --force-publish=@evdy/svr-api ​
This will publish the api app for PROD
Some notes on publishing … if web packages are involved, especially in prod, we include @evdy/web-redux and @evdy/web-etc in the force publish. Also, when dealing with web packages, it can take a while ~20 minutes. Hopefully as we migrate more and more to Vercel, the only package needing to be published/deployed to ec2 is svr-api