Skip to content

Commit

Permalink
feat: move to upsun hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
Plopix committed Jun 4, 2024
1 parent 6222a1f commit 1744aea
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions frameworks/remix-run/.upsun/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
applications:
frontapp:
source:
root: application
type: 'nodejs:18'
relationships:
redis: 'redis:redis'
web:
commands:
start: 'NODE_ENV=production npm run start'
locations:
'/public':
passthru: false
root: 'public'
hooks:
build: |
npm run build
deploy: |
curl -X POST "https://api.fastly.com/service/${FASTLY_SERVICE_ID}/purge_all" -H "Fastly-Key: ${FASTLY_API_TOKEN}" -H 'Accept: application/json'
services:
redis:
type: 'redis:6.2'
configuration:
maxmemory_policy: volatile-lru

routes:
'https://*.{default}/':
type: upstream
id: 'frontapp'
upstream: 'frontapp:http'
cache:
# Cache is managed by Fastly
enabled: false

0 comments on commit 1744aea

Please sign in to comment.