#Deploying using RedwoodJS and postgreSQL

7 messages · Page 1 of 1 (latest)

rain wedge
#

Hello!

This is my first ever attempt at deploying and this is my first use of a database.

I'm trying to deploy a project I created using RedwoodJS and I initially created the project using Redwood's default DB SQLite, but now that I'm trying to convert the DB to postgreSQL and deploy using Railway, the build is failing.

When I use 'railway up' command I specifically get 'Error: No start command could be found'

I can't see any other errors, I've installed postgreSQL and its showing on Railway, I feel like I've missed something along the way, I have been trying to piece it together using Railway docs and a quick guide I saw by ajcwebdev.

I feel like I've messed something up in the schema file? Specifically this:

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

Any help is appreciated!

forest geode
rain wedge
#

with the command 'yarn rw dev'

forest geode
plain hearth
rain wedge
#

Okay, so I think I may understand a bit more where I've gone wrong.

According to https://redwoodjs.com/docs/tutorial/chapter4/deployment

I need to delete all my previous migrations and update my .env file which I have not done, then hopefully I'm a step further?

The whole reason we started building Redwood was to make full-stack web apps easier to build and deploy on the Jamstack. While technically we already deployed in the previous section, it doesn't actually work yet. Let's fix that.

plain hearth