mongodump
source /opt/superdesk/activate.sh
cd /opt/superdesk
git pull
cd /opt/superdesk/server
pip install -U -r requirements.txt
./manage.py data:upgrade
./manage.py app:initialize_data
cd /opt/superdesk/client
npm install
npm update
grunt build
systemctl restart superdesk
https://medium.com/mongoaudit/how-to-upgrade-mongodb-to-latest-stable- version-9607266834cf:
sudo rm /etc/apt/sources.list.d/mongodb*.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv
0C49F3730359A14518585931BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
After upgrading MongoDb, you need to use this command:
db.adminCommand( { setFeatureCompatibilityVersion: "3.4" } )
npm install
npm update -g
After running node update -g I came to grunt build. That one caused other issues, like not finding the superdesk-grunt file under superdesk-core . Checked under src/superdesk-core, but it wasn't there.
It might be that my version of Superdesk was/is too old for an upgrade. Petr, if you have any suggestions, I am open for any solution.
Is there a way to install a new version and import the data from the old version?
source /opt/superdesk/activate.sh
cd server
honcho run python manage.py app:index_from_mongo --all
source /opt/superdesk/activate.sh
cd /opt/superdesk
git pull
cd /opt/superdesk/server
pip install -U -r requirements.txt
./manage.py data:upgrade
./manage.py app:initialize_data
cd /opt/superdesk/client
npm install
npm update
grunt build
systemctl restart superdesk
It looks like you're new here. If you want to get involved, click one of these buttons!