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

Current instructions to build dev environement are nearly all wrong on Debian 12 #224

Open
CharlesNepote opened this issue Jan 17, 2025 · 0 comments

Comments

@CharlesNepote
Copy link
Member

Current install instructions don't work on Debian 12.

Here is the way I managed to have a working dev environment:

# start with a fresh Debian 12 install, logged as root
apt install git sudo postgresql python3-venv -y
adduser folksonomy
usermod -aG sudo folksonomy
su folksonomy
cd ~
git clone https://github.com/openfoodfacts/folksonomy_api.git
cd folksonomy_api
python3 -m venv folksonomy
. ./folksonomy/bin/activate
pip install -r requirements.txt
sudo -i -u postgres createuser $USER
sudo -i -u postgres createdb folksonomy -O $USER
yoyo apply --database postgresql:///folksonomy
cp local_settings_example.py local_settings.py
uvicorn folksonomy.api:app --reload --host <my_ip_address_or_domain_name>
# => works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant