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

Supply other variables via command line #127

Closed
ClaudiuCreanga opened this issue Aug 8, 2018 · 4 comments
Closed

Supply other variables via command line #127

ClaudiuCreanga opened this issue Aug 8, 2018 · 4 comments

Comments

@ClaudiuCreanga
Copy link

ClaudiuCreanga commented Aug 8, 2018

My workflow implies that I receive the database from other systems. So another system will run:
python manage.py build --build-dir folder but it will also have to specify the path of the database it wants to use.

At the moment I'm using argparse and another file that the system can run with the -input flag for the database path. It writes that input path into a file that then it is read by django.

Preferably I would like to have an argument in the build command where users can insert something specific for their application (like in my case the path to the db):

python manage.py build --build-dir folder --other-var path-df.sqlite

Are you interested in a PR like that?

@ClaudiuCreanga ClaudiuCreanga changed the title Supply database location via command line Supply other variables via command line Aug 8, 2018
@palewire
Copy link
Owner

palewire commented Aug 12, 2018 via email

@ClaudiuCreanga
Copy link
Author

@palewire thanks. I didn't know that I can pass a --settings flag to the build command. With that and an environment variable all works fine.

@palewire
Copy link
Owner

Glad to hear it. I'm curious. What are you using bakery for?

@ClaudiuCreanga
Copy link
Author

ClaudiuCreanga commented Aug 13, 2018

Delivering clinical dna & rna reports. Clients run a cloud app and some may also want a static html file at the end that they can download. Awesome project btw.

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