excid3 / jumpstart

Easily jumpstart a new Rails application with a bunch of great features by default
http://jumpstartrails.com
MIT License
1.2k stars 316 forks source link

Rails app failing on rails s #184

Closed custombusinesssystems closed 2 years ago

custombusinesssystems commented 2 years ago

Hey @excid3,

Long time user of Jumpstart, and love it.

Think it would be super helpful to add the rake assets:precompile to the To get started with your new app: part.

excid3 commented 2 years ago

assets:precompile is only used for production. You need to run bin/dev for development.

custombusinesssystems commented 2 years ago

Appreciate you Chris

interesting, I cant get jumpstart not to error on my local system without it.

excid3 commented 2 years ago

cssbundling-rails and jsbundling-rails use separate processes to build assets, so you can no longer run just the rails server.

custombusinesssystems commented 2 years ago

so when starting a rails server i have forman running, and I have bin/dev what else do i need to run to not have to precompile?

excid3 commented 2 years ago

You probably need to clear out those precompiled files if you ran that.

custombusinesssystems commented 2 years ago

ok, maybe a better question is... when you start a local with jumpstart, whats your process?

excid3 commented 2 years ago

I just run bin/dev

custombusinesssystems commented 2 years ago

Yeah cool, i will have to do some more research, but when you google error starting jumpstart its a thing, and its always the css. https://gorails.com/forum/error-starting-new-jumpstart-app

custombusinesssystems commented 2 years ago

Well if nothing else hopefully this is a great spot for it.... dont start your server with rails s or rails start. simply replace it with bin/dev for applications using cssbundling-rails and jsbundling-rails.

excid3 commented 2 years ago

That's why I included it in the instructions here:

Screen Shot 2022-04-08 at 7 53 29 PM

Just tried it on a brand new app and works fine for me.

custombusinesssystems commented 2 years ago

I get it now, and it makes complete sense.

The issue i had was that when i first ran it it failed.

I had to watch your https://gorails.com/episodes/esbuild-jsbundling-rails to understand why and add the "build": "node esbuild.config.js" to the package.json... so by the time I got there...

sounds pretty dumb but - bin/dev didnt really play into my mind as the way i was starting the server.

I am not sure how often you get this, but adding "- to start the server", might save you time and a-lot of people a-lot of heart ache.

Regardless, i appreciate your work, and you are a big part of my rails journey.