Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

start.py 678 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  1. logo = '''
  2. █▀█ █▀█ █  █ █▄▄ █▀█ ▀█▀
  3. █▀▀ █▄█ █▄▄ █ █▄█ █▄█  █
  4. '''
  5. ask_for_this = {'db_password':None}
  6. projects_paths = ['fastapi/app', 'streamlit/app']
  7. if __name__ == "__main__":
  8. print(logo)
  9. for k,v in ask_for_this.items():
  10. answer = input('{}: '.format(k))
  11. ask_for_this[k] = answer
  12. for project_path in projects_paths:
  13. with open('{}/.env'.format(project_path), 'w') as env_file:
  14. for k,v in ask_for_this.items():
  15. env_file.write('{}={}'.format(k, v))
  16. print("\nProject is ready!\nStart it with : docker-compose up")
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...