Migration from dev to prod, possible? #3734
-
Hi there, I'm trying to move from a typical docker dev environnement to a production one (still on 'latest' tag by the way). I've done the export from my dev env :
I've set up my prod env (which works well as far as I can tell), in a brand new folder dedicated to prod, move the json and trying to import datas :
but wherever I can cp the json and setting the right path, i land on
I've tryed to import in the dev environnement, and it works easily. Is there anything I missed? [Edit] I can link my docker-compose if needed or my .env. DB user and passwords are differents from dev to prod. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You have to specify the path to the data file relative to the container environment. If you have placed the file in the external "data" volume, that command should be:
|
Beta Was this translation helpful? Give feedback.
You have to specify the path to the data file relative to the container environment. If you have placed the file in the external "data" volume, that command should be:
sudo docker-compose run inventree-server invoke import-records -c -f data/expdata.json