Joe
Joe17mo ago

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
jamwt
jamwt17mo ago
@Joe npx convex reinit should do the trick (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
Joe
JoeOP17mo ago
I 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!
jamwt
jamwt17mo ago
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, etc
Joe
JoeOP17mo ago
ok thanks!
lee
lee17mo ago
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 again
Joe
JoeOP17mo ago
ah ok cool thank you!

Did you find this page helpful?