This is a demo for running a Remix app on AWS EKS with automatic deploys from Spaceship
- Spaceship:
- Amazon
- Node 14+ (for local dev)
-
npm init remix . # Choose the "Remix App Server" when prompted git add . git commit -m '🚀 Welcome to the Remix on Spaceship Demo!'
-
eksctl create cluster -n remix-on-spaceship-demo
-
Create the cluster entry in Spaceship and install the Spaceship Agent:
Visit: https://onspaceship.com/teams/TEAM_HANDLE/clusters
Create a new cluster and click the "Need to set up your cluster?" link.
Copy and run the
kubectl apply
command provided. -
kubectl apply -f k8s/
-
Visit: https://onspaceship.com/teams/TEAM_HANDLE/apps/new
Install the GitHub App, if you haven't already.
Find your repo and create an app with it.
On the app's main page, choose Builds and Delivery and proceed through all 3 steps. We'll set up the deployment label next.
-
ship setup-delivery remix-on-spaceship-demo -a remix-on-spaceship-demo -t TEAM_HANDLE
-
Load up
app/routes/index.tsx
and make some changes to the page. Then push them up to GitHub. -
Once the delivery completes on Spaceship, you can visit the running application to see your changes. You can get the temporary address to your application by running this command:
kubectl get svc remix-on-spaceship-demo
It will be the address ending in
*.elb.amazonaws.com
. Make sure the URL in your browser starts withhttp://