-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to update app without losing association storage #99
Comments
You should use rc-apps deploy --url=http://localhost:3000 --update P.S. However, I agree that it would be more convenient to have one deployment command that either installs or updates the application itself |
Totally agreed. @ritwizsinha introduced the new Maybe it's the case of extracting the logic into a function and reusing it? :) |
@d-gubert If I understand correctly, the
After installing the module manually, it worked, it looks like you need to add it depending on it And for use in CI/CD pipelines, it would be convenient for the deployment command to immediately update the application if it is already installed by one |
@JargeZ, this is happening because, by default it is watching the current directory for changes and redeploying on any change, as the dist folder is updated everytime after packaging, it redeploys again and again. For avoiding this you can specify which folder and files to avoid watching for changes. This can be done by adding a rcappsconfig file and add the list of ignored files or folders or files in the ignoredFiles array as follows:
|
@ritwizsinha Of course I have this file. The scaffolding was generated by the same version of rc-apps |
Hi, I had a look at the code, it is really a useful feature <3. Some improvement I could suggest that is you may only need to do login + check permission + check app updatability once and then use the token + flag update every following time :D. That could improve the performance |
The watch command goes completely bananas. :) |
That's a bug as I see. Add |
Oh man! Thanks for sharing! That fixes the loop! I wonder why they didn't include this by default. :) |
They seem didn't expect it. App.json is changed, but the new value is equal to the old one. Idk why but chokidar will still emit a change event for that, thats why the app gets re-deployed |
I am developing an app which makes use of the
RocketChatAssociationRecord
for rooms.When I try to deploy a new version, it fails with " › Error: ⟿ Error: Deployment error: App already exists.".
But if I uninstall the app first, it removes all associated storage.
How can I update an app without losing stored data?
Is there an "update" command, or a check for a new version number? Can't find either
The text was updated successfully, but these errors were encountered: