Strapi service cashing

carl-parrishPRO

10 months ago

I'll include the error messages below.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

16 Replies

carl-parrishPRO

10 months ago

I think my primary problem is I don't know what is supposed to be in APP_KEYS``` app: {

keys: env.array('APP_KEYS'),

},``````at async Strapi.start (/app/node_modules/.pnpm/@strapi+strapi@4.25.1_@babel+runtime@7.24.7_@codemirror+autocomplete@6.16.3_@codemirror+langu_z432k42xmygtwqmekfyoit2sfq/node_modules/@strapi/strapi/dist/Strapi.js:216:9)

Jun 25 12:11:51

[2024-06-25 19:11:51.282] debug: ️ Server wasn't able to start properly.

Jun 25 12:11:51

[2024-06-25 19:11:51.282] error: Middleware "strapi::session": App keys are required. Please set app.keys in config/server.js (ex: keys: ['myKeyA', 'myKeyB'])

Jun 25 12:11:51

Error: Middleware "strapi::session": App keys are required. Please set app.keys in config/server.js (ex: keys: ['myKeyA', 'myKeyB'])```I also might be screwed because I installed via --quickstart which is using SQLite if there is a way to get that working that's fine. But in the mean time I'm attempted to get the Stripi template going. https://railway.app/template/strapi


10 months ago

Using the template is going to be the best way to get Strapi deployed to Railway.


Status changed to Solved railway[bot] 10 months ago


carl-parrishPRO

10 months ago

That will probably allow me to do my demo today but Long term I need to use Turso as the database


10 months ago

Need?


carl-parrishPRO

10 months ago

Yeah that's where the rest of our databases are and they will need to access each other.


carl-parrishPRO

10 months ago

Getting the following error when trying to run the template locally. ⠹ Loading Strapi[ERROR] There seems to be an unexpected error, try again with --debug for more information

┌───────────────────────────────────────────────────────┐

│ │

│ AggregateError [ECONNREFUSED]: │

│ at internalConnectMultiple (node:net:1114:18) │

│ at afterConnectMultiple (node:net:1667:5) │

│ │

└───────────────────────────────────────────────────────┘


10 months ago

Yeah that's where the rest of our databases are and they will need to access each other.

By using an external database you would be subjecting yourself to egress fees and higher database access times, I can not recommend that, nor would I be able to assist with that.

Getting the following error when trying to run the template locally.

Please read the template overview for instructions on running it locally.


carl-parrishPRO

10 months ago

I followed the directions here -> https://railway.app/template/strapi will check github to see if there is anything more there.


carl-parrishPRO

10 months ago

@brody Okay I see I missed the config ENV steps. I'm going to have to wipe the services I have running now and start a new one but is there a way to release the custom domain I have assigned there? I'd like to be able to use it still.


carl-parrishPRO

10 months ago

Also is there a way to tell it which workspace to run in - right now it's running in my hobby workspace.


10 months ago

is there a way to release the custom domain I have assigned there? I'd like to be able to use it still.

Remove it from the service its used on.

Also is there a way to tell it which workspace to run in - right now it's running in my hobby workspace.

You can move the project to the Pro workspace from within the project's settings.


carl-parrishPRO

10 months ago

Okay got the new services up and running and seem to be making progress (I can actually log into my remote strapi site) but I'm still having issues. First locally I'm still getting the same error. strapi-template [main] lsof -i :1337

strapi-template [main] doesn't seem like there is anything running on that port. I was able to link from the command line just fine so I don't think the problem is there. I've probably run 4 different types of Strapi on my computer today (non currently running though) so it's possible something just got cached somewhere. My more urgent issue is that my user doesn't seem to be able to create new content types (despite being a Super Admin). I do see there is an update for admin panel so I'll try that and hope that fixes it.


10 months ago

I have just wrote some additional points on developing with the template locally and Milo was kind enough to update the overview with them.

Following the guide in the overview results in a working local development instance of Strapi, and I have just verified that when I made my PR.

Please note that new content types can only be added when you are running Strapi in development mode locally.

I would recommend familiarizing yourself with Strapi as that would help you tremendously.


carl-parrishPRO

10 months ago

I didn't see the info regarding the ejection flags until after I had already forked the github repo and pointed my service at that. Is there something else needed? It doesn't seem to be deploying my changes though.


carl-parrishPRO

10 months ago

@brody - I've had it running locally for a few weeks. Today is my first time trying to deploy it. All part of the trying to learn it better.


10 months ago

I'm sorry but I don't know what further assistance I could provide here as the template works both on Railway and locally provided the instructions are followed correctly.

If you are needing assistance with Strapi itself that would not be support we could provide here, please look to the Strapi community for support with Strapi.