Draft: feat: autocreate cube and instance
2 unresolved threads
2 unresolved threads
Il reste à mettre le fichier ~/etc/cubicweb.d/instance/source pour mettre sqlite
Edited by Noé Gaumont
Merge request reports
Activity
Filter activity
requested review from @bram
- Resolved by Noé Gaumont
164 165 # should pip install the cube 166 create_cube = f'pip install -e cubicweb-{cube_name}' 167 subprocess.run(create_cube, shell=True, check=True, capture_output=True) 168 169 print(f'creating the instance {args.instance_name}. The parameter are in ~/etc/cubicweb.d/{args.instance_name}/') 170 create_instance = f'CW_DB_DRIVER=sqlite cubicweb-ctl create {args.instance_name} {args.instance_name} -a' 171 res = subprocess.run(create_instance, shell=True, capture_output=True) 172 if res.returncode != 0 : 173 print(res.stdout.decode()) 174 print(res.stderr.decode()) 175 exit(1) 176 177 # The source file has to be modified to include sqlite 178 179 print(f'Congratulation ! You can run your instance with : `cubicweb-ctl pyramid -D -l info {args.instance_name}` ') changed this line in version 2 of the diff
14 14 author = "Fabien Amarger" 15 15 author_email = "famarger@logilab.fr" 16 16 requires = { 17 "cubicweb": ">=3.30", removed review request for @bram
mentioned in issue cubicweb#425 (closed)
Please register or sign in to reply