W
Wasp-langβ€’2mo ago
matijash

Migrating Wasp / OpenSaaS app from 0.11.8 to the latest version

Wasp ppls, I have a Wasp / Open SaaS app that is currently at v0.11.8, and I want to migrate it to the latest one. What is the migration path I should follow? Shall I go through every release note and incrementally update from one version to another, or is there an easier way? Thanks for helping a fellow Wasp user πŸ˜„
7 Replies
kapa.ai
kapa.aiβ€’2mo ago
Hi @matija. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hello fellow Wasp user! πŸ˜„ To migrate your Wasp app from version 0.11.8 to the latest version, you should first migrate to version 0.12.X and then to version 0.13.X. Here are the steps you need to follow to migrate from 0.11.X to 0.12.X: 1. Install the 0.12.x version of Wasp. You can do this by running the following command in your terminal:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh -s -- -v 0.12.4
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh -s -- -v 0.12.4
2. Backup or save your project before starting the migration procedure. 3. Position yourself in the terminal in the directory that is a parent of your wasp project directory. 4. Run the migration script and follow the instructions:
npx wasp-migrate foo
npx wasp-migrate foo
Replace foo at the end with the name of your Wasp project directory. After migrating to 0.12.X, you will need to migrate your app to the new auth system. This is a two-step process: 1. Migrate to the new auth system 2. Clean up the old auth system Once you've completed these steps, you can then migrate from 0.12.X to 0.13.X. Make sure to read the migration guide from 0.12.X to 0.13.X (https://wasp-lang.dev/docs/migrate-from-0-12-to-0-13) after you finish this one. If you get stuck at any point, don't hesitate to ask for help on the Wasp Discord server (https://discord.gg/rzdnErX). Sources: - Migration from 0.11.X to 0.12.X (https://wasp-lang.dev/docs/migrate-from-0-11-to-0-12) - How to Migrate? (https://wasp-lang.dev/docs/migrate-from-0-11-to-0-12#how-to-migrate) - Migrating to the New Auth (https://wasp-lang.dev/docs/migrate-from-0-11-to-0-12#migrating-to-the-new-auth) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @matija, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
mihoβ€’2mo ago
My suggestion would be to follow the migration guides one by one πŸ™‚ Kapa linked to some of them, but they also link to each other. Just start with the 0.11 -> 0.12 one and then continue working through them!
matijash
matijashβ€’2mo ago
hmm just thinking about it now, since my app is quite small (everything is pretty much contained in one file), and I'd also like to have the latest version of Open SaaS, maybe the easiest way would be to start a new Open SaaS project, and then just migrate the functionality from the old project to it?
miho
mihoβ€’2mo ago
@matija that could be a good solution for you yeah πŸ˜„ get all the new stuff and just copy paste few of your files!
Fecony
Feconyβ€’2mo ago
Great job MihoGPT
miho
mihoβ€’2mo ago
If you are satisfied with my service, please let @matija know in a DM with a 5 star review ⭐⭐⭐⭐⭐
Want results from more Discord servers?
Add your server