Bast icon indicating copy to clipboard operation
Bast copied to clipboard

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

Open webong opened this issue 7 years ago • 1 comments

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 avatar Sep 24 '18 22:09 webong

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

webong avatar Sep 24 '18 22:09 webong