Skip to content
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 upgrade platform version #1449

Open
pinetal opened this issue Feb 8, 2022 · 3 comments
Open

How upgrade platform version #1449

pinetal opened this issue Feb 8, 2022 · 3 comments

Comments

@pinetal
Copy link

pinetal commented Feb 8, 2022

There is step to upgrade citizenlab version maintaining the history of all projects and ideas?

@alexander-cit
Copy link
Contributor

alexander-cit commented Feb 9, 2022

You can run these commands in the directory with your citizenlab deployment:

docker-compose pull
docker-compose stop

docker-compose run --rm web bin/rails db:migrate email_campaigns:assure_campaign_records cl2back:clear_cache_store email_campaigns:remove_deprecated

docker-compose run --rm web bin/rails runner "PermissionsService.new.update_all_permissions; AppConfiguration.instance.tap { |c| c.cleanup_settings; c.save! }"

docker-compose up -d

WARNING: these commands may break your citizenlab deployment, so ensure that you've backed up all the data (database, files, etc).

Later this week we'll add this section to our documentation.

@alexander-cit
Copy link
Contributor

Sorry for the misinformation, it's possible that the above commands won't work for you. You can still try these ones, but maybe it's safer to wait for the official update on the documentation website (probably in the "Guides" section) https://developers.citizenlab.co/

docker-compose pull
docker-compose stop
docker-compose run --rm web bin/rails db:migrate email_campaigns:assure_campaign_records cl2back:clear_cache_store email_campaigns:remove_deprecated
docker-compose run --rm web bin/rails runner "AppConfiguration.instance.tap { |c| c.cleanup_settings; c.save! }"
docker-compose up -d

@pinetal
Copy link
Author

pinetal commented Mar 8, 2022

sorry but i have tried and the site is not correct. I am waiting other information from your developer site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants