Build and deploy a full stack Clojure and ClojureScript Web Application
on the code again
Build and deploy a Clojure app by: Dockerizing the CSS, ClojureScript and JAR build Using GitHub actions to SSH into a server pull the repo then build and run the created image.
GitHub Repo: https://github.com/danownsthisspace/shorturl-deploy Starting Repo: https://github.com/danownsthisspace/shorturl-app
Previous videos: Video 1 (Build the back-end): https://www.youtube.com/watch?v=0mrguRPgCzI Video 2 (Build the front-end): https://www.youtube.com/watch?v=V-dBmuRsW6w
Tools used in the video: Planet Scale (MySql host): https://planetscale.com/ Linode (Server): https://cloud.linode.com/ SSH GitHub Action: https://github.com/appleboy/ssh-action Node in docker container: https://gist.github.com/remarkablemark/aacf14c29b3f01d6900d13137b21db3a?permalink_comment_id=4279765#gistcomment-4279765 Shadow CLJS: https://shadow-cljs.github.io/docs/UsersGuide.html Tailwind CSS: https://tailwindcss.com/ Clojure Docker Image: https://hub.docker.com/_/clojure Clojure tools.build: https://github.com/clojure/tools.build
Clojure Development in VS Code using Calva: https://calva.io/
00:00 Intro 00:10 Deployment overview 00:29 Setting up the project 01:16 Adding environment variables 01:48 Create uberjar using tool.build 09:58 Dockerize build 13:39 Creating a docker-compose file 16:09 Create Linode server 17:22 Create Repo and pull it on Linode server 21:48 Create .env file on the Linode server 22:11 Fix dockerfile issues 24:01 Set up continous deployment using github actions 28:41 Test deployment ... https://www.youtube.com/watch?v=j4vhDqXaWRM
287471442 Bytes