diff --git a/Procfile b/Procfile deleted file mode 100644 index 75af2b3..0000000 --- a/Procfile +++ /dev/null @@ -1,2 +0,0 @@ -release: npx prisma migrate deploy -web: npm run start \ No newline at end of file diff --git a/README.md b/README.md index da64b0d..9b265e0 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,16 @@ -[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/TerribleDev/remix-heroku) +[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy) +# Remix stack for Render.com -# Remix stack for heroku +This is a very simple remix stack built for [render.com](https://render.com). This includes: -This is a very simple remix stack built for heroku. This includes: - -* dotenv to load environment variables * Postgres Sql for a datastore * Prism ORM for database queries ## How to use this? -run `npx create-remix@latest --template terribledev/remix-heroku` - -Either provision a new heroku app with a postgres database or use the `deploy to heroku button` to setup your app. +* run `npx create-remix@latest --template terribledev/remix-render` +* Create a new github repo and push the output up +* Use the deploy to render button in your repository to deploy your app ## Developing diff --git a/render.yaml b/render.yaml new file mode 100644 index 0000000..f0f3edc --- /dev/null +++ b/render.yaml @@ -0,0 +1,16 @@ +databases: + - name: remix-render + databaseName: remix-render + user: mysite + +services: + - type: web + name: remix-render + env: node + buildCommand: "npm install && npx prisma migrate deploy" + startCommand: "npm run start" + envVars: + - key: DATABASE_URL + fromDatabase: + name: remix-render + property: connectionString \ No newline at end of file