· 7 years ago · Aug 02, 2018, 06:48 PM
1me@pc:solutions/rebotics_retailer$ docker-compose run --rm django python manage.py sync_all_s3_files --help
2
3You have not specified RABBITMQ_PORT. Assuming we are running under docker-compose with default value 5672
4Postgres is up. Continuing...
5using rabbitmq_url
6RabbitMQ is up. Continuing...
7Running without pycharm
808-02 18:43:12 [processing DEBUG] apps:16 > Ready callback was called
9usage: manage.py sync_all_s3_files [-h] [--version] [-v {0,1,2,3}]
10 [--settings SETTINGS]
11 [--pythonpath PYTHONPATH] [--traceback]
12 [--no-color] [-b NEW_BUCKET]
13 [-a ACCESS_KEY] [-s SECRET_KEY]
14 [--source-bucket SOURCE_BUCKET]
15 [--source-access-key SOURCE_ACCESS_KEY]
16 [--source-secret-key SOURCE_SECRET_KEY]
17 [-V]
18 old_base_path base_path
19
20Sync two MEDIA buckets using FileFields from database tables.
21
22positional arguments:
23 old_base_path Old base path where file are used. Current:
24 retailer/media
25 base_path Base path to append the file. Default: {}
26
27optional arguments:
28 -h, --help show this help message and exit
29 --version show program's version number and exit
30 -v {0,1,2,3}, --verbosity {0,1,2,3}
31 Verbosity level; 0=minimal output, 1=normal output,
32 2=verbose output, 3=very verbose output
33 --settings SETTINGS The Python path to a settings module, e.g.
34 "myproject.settings.main". If this isn't provided, the
35 DJANGO_SETTINGS_MODULE environment variable will be
36 used.
37 --pythonpath PYTHONPATH
38 A directory to add to the Python path, e.g.
39 "/home/djangoprojects/myproject".
40 --traceback Raise on CommandError exceptions
41 --no-color Don't colorize the command output.
42 -b NEW_BUCKET, --bucket NEW_BUCKET
43 New bucket name. Otherwise the django.conf.settings.AW
44 S_STORAGE_NEW_BUCKET_NAME='None' will be used
45 -a ACCESS_KEY, --access-key ACCESS_KEY
46 Access key for the new bucket. Otherwise the django.co
47 nf.settings.AWS_NEW_ACCESS_KEY_ID='***************6XDK
48 Q' will be used
49 -s SECRET_KEY, --secret-key SECRET_KEY
50 Secret key for the new bucket. Otherwise the django.co
51 nf.settings.AWS_NEW_SECRET_ACCESS_KEY='***************
52 ********************bj9+m' will be used
53 --source-bucket SOURCE_BUCKET
54 Old bucket name. Otherwise the
55 django.conf.settings.AWS_STORAGE_NEW_BUCKET_NAME='re-
56 botics' will be used
57 --source-access-key SOURCE_ACCESS_KEY
58 Access key for the new bucket. Otherwise the django.co
59 nf.settings.AWS_NEW_ACCESS_KEY_ID='***************6XDK
60 Q' will be used
61 --source-secret-key SOURCE_SECRET_KEY
62 Secret key for the old bucket. Otherwise the django.co
63 nf.settings.AWS_NEW_SECRET_ACCESS_KEY='***************
64 ********************bj9+m' will be used
65 -V, --verbose Increases verbosity