45 Replies
Project ID:
cc6720ef-d0c5-4c94-949d-1552ca86f88a
You might find these helpful:
- React app not building
- Deployment with build doesn't work
- problems building React front end for full stack project
⚠️ experimental feature
cc6720ef-d0c5-4c94-949d-1552ca86f88a
project id
project/cc6720ef-d0c5-4c94-949d-1552ca86f88a/service/6b001e48-5e91-4a4e-b615-3a6cc2fd70b7
Please any one see this reply
Build log
i don't have any other host @Finn - uses centos
│ npm run start - what does that do?
starts the project
yes, but what does it do....
how does it do it rather
can you be more specific
not really
oh so this is a CRA project?
is it an spa? or is it ssr'ed?
yep
Create a New React App – React
A JavaScript library for building user interfaces
ok
so you will need to use the nixpacks staticfile provider
ill see if theres a template
alright, i'll wait
it's the 3rd one ig @Finn - uses centos
first i think you need a file like this
what is that file
containing
just a file called
Staticfile
Okay
that might actually be all you need
yeah like that
should i use the first one here?
make sure your root directory is set to
client-front
in settings
if you want to remake your project yeah ide 100% recommed vitewhich settings
if you dotn want to start again you dont have to
the settings of your service
same place you got your logs from
yea
also i could not deploy the back-front end in the same service right @Finn - uses centos ?
so i create empty service for now
seperate services same project
Ok
its possible using a dockerfile if you want to save money
i'll search of what is dockerfile
it will require quite a bit of effort
you need a container with an Nginx server + node installed
To get you started this is how you can install node on a alpine linux container
I still can not build the project
<#1054423917000925244> have same error but i didn't get the solution
whats the issue now?
and waht do the deploy logs look like?
from the logs thereit looks like its built
although those logs are truncated
there is none
and further down the build logs does it build properly?
yes
it started to
but then it crashes ig
If i were you ide suggest just hosting the backend on railway and host the frontend on vercel
what is vercel
is that other host
https://vercel.app
its spesficicly for websites
then you can host the backend here
which will hopefully just work
How much does it coast?
idk. i have the pro membership
likely free