This commit is contained in:
Tommy Parnell
2022-04-12 11:38:56 -04:00
parent 2b8daa3b1e
commit 5f6cca2651
3 changed files with 22 additions and 10 deletions

View File

@@ -1,2 +0,0 @@
release: npx prisma migrate deploy
web: npm run start

View File

@@ -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

16
render.yaml Normal file
View File

@@ -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