deploy to new project from old project?
I just got back to convex after a little while, and I wanted to double check if there's a way to redploy to a new project from an old project. For context, I have one project that I have a branch of I want to deploy to a different project name possibly in the future. I was trying to play around with the convex.json, but I am doing something wrong / I'm not sure I should be using that file. Any changes I made in there or even removing it made no difference if I did npx convex deploy. Thanks!
6 Replies
@Joe (not that simple based on the convex.json, we probably need to figure out what version your project is on)
how old is the project? b/c you probably need to update to post 1.0 first if you haven't
the way projects are represented has changed in a convex repo
which version of convex is in your package.json and then we might be able to help more
npx convex reinit
should do the trickI think I upgraded to the latest, so now I'm on 1.0.3 if i check the package.json file. I didn't have to many functions and I'm not seeing any breaking points for this project since it's pretty simple luckly. If I'm on the latest version is there a doc I should look at ?
Thanks!
I would remove the
convex.json
and try to npx convex init
again
because convex doesn't use the convex.json any more to determine backend information, etcok thanks!
in case that doesn't work (because
convex.json
stuff has mostly moved to .env
and .env.local
), npx convex dev --once --configure
is how you can get the "start a new project?" prompt againah ok cool thank you!