Skip to content

mheerspink75/FlaskTodoReplitDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repl.it - remote db in local virtual environment


Setup virtual environment on local machine

# install venv
python3 -m venv venv

# activate venv
source venv/bin/activate

# install Flask
pip3 install Flask

Install Repl.it

https://replit-py.readthedocs.io/en/latest/

# install replit
pip3 install replit

Remote db

# get the db url from remote replit shell
echo $REPLIT_DB_URL

Local machine...

#set the environment variable in bash venv on local machine
export REPLIT_DB_URL="<REPLIT_DB_URL>"