first commit
This commit is contained in:
19
deploy_template.sh
Normal file
19
deploy_template.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Ensure the SDK is built before deployment
|
||||
echo "Building SDK..."
|
||||
cd sdk
|
||||
npm install --legacy-peer-deps
|
||||
npm run build
|
||||
cd ..
|
||||
|
||||
# Commit and push changes
|
||||
echo "Committing and pushing changes..."
|
||||
git add .
|
||||
git commit -m "deploy"
|
||||
git push origin main
|
||||
|
||||
# Build and deploy the e2b template
|
||||
echo "Building and deploying e2b template..."
|
||||
cd e2b_template && e2b template build -c "npm run dev"
|
||||
Reference in New Issue
Block a user