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

Panther should be able to initialize a virtual environment in Bast app #16

Open
webong opened this issue Sep 24, 2018 · 1 comment
Open

Comments

@webong
Copy link
Contributor

webong commented Sep 24, 2018

I think you should enforce virtualenv as a requirement to use bast
Then after running panther new app
cd app
panther init
this init command should then setup a virtualenv for that project ... so dependencies installed never conflicts

A better way i think is to use pipenv .... This solves the problem by bringing pip and env together
Pipenv Doc

Using pipenv ... the panther init command runs runs pipenv shell to create a virtual env in the app directory instead

@webong
Copy link
Contributor Author

webong commented Sep 24, 2018

Default .env file should look like this

 export WORKON_HOME=.forest

APP_NAME=bast-framework
APP_KEY=yJ521GIk7EJHYfs387rVQSSTU2nsKVkaGkR/QjoTGL8=
HOST=localhost
PORT=2000
DEBUG=True
DB_TYPE=mysql
DB_NAME=bast
DB_HOST=localhost
DB_USER=user
DB_PASSWORD=password
DB_PREFIX=

WORKON_HOME allows pipenv to setup the virtual environment in the project folder
running pipenv shell setups a virtual env

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

1 participant