Create and fill in .env using .env.example as an example.
Install required Python packages
pip install -r requirements.txt
Mac M1 / OS X Note: if you get an error installing psycopg2, you may need:
brew install postgresql
See https://github.com/psycopg/psycopg2/issues/1200
python scripts/pdf_to_pages_embeddings.py --pdf book.pdf
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
heroku create askmybook
Set config variables on Heroku to match your .env.
git push heroku main
heroku ps:scale web=1
heroku run python manage.py migrate
heroku open
heroku domains:add askmybook.com
source venv/source/activate
pip install -r requirements.txt
heroku local
Note: macOS Monterey uses port 5000 (the default port) for AirPlay sharing, so you will need to run heroku local on a different port. For example:
heroku local -p 5001
Deploy to Heroku with:
git push heroku main --no-verify
no-verify is added due to using Git LFS for the large embedding file.
204 followers · starred Nov 2023
1,122 followers · starred Jan 2023
896 followers · starred Oct 2023
1,513 followers · starred Aug 2023
Create and fill in .env using .env.example as an example.
Install required Python packages
pip install -r requirements.txt
Mac M1 / OS X Note: if you get an error installing psycopg2, you may need:
brew install postgresql
See https://github.com/psycopg/psycopg2/issues/1200
python scripts/pdf_to_pages_embeddings.py --pdf book.pdf
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
heroku create askmybook
Set config variables on Heroku to match your .env.
git push heroku main
heroku ps:scale web=1
heroku run python manage.py migrate
heroku open
heroku domains:add askmybook.com
source venv/source/activate
pip install -r requirements.txt
heroku local
Note: macOS Monterey uses port 5000 (the default port) for AirPlay sharing, so you will need to run heroku local on a different port. For example:
heroku local -p 5001
Deploy to Heroku with:
git push heroku main --no-verify
no-verify is added due to using Git LFS for the large embedding file.
204 followers · starred Nov 2023
1,122 followers · starred Jan 2023
896 followers · starred Oct 2023
1,513 followers · starred Aug 2023