File size: 337 Bytes
e21102a |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#!/bin/bash
# Create Modal config directory
mkdir -p ~/.modal
# Write Modal token configuration if provided
if [ ! -z "$MODAL_TOKEN_ID" ] && [ ! -z "$MODAL_TOKEN_SECRET" ]; then
echo "{\"token_id\":\"$MODAL_TOKEN_ID\",\"token_secret\":\"$MODAL_TOKEN_SECRET\"}" > ~/.modal/config.json
fi
# Start the application
exec python app.py
|