- Install latest Ubuntu (20+)
- apt install postgresql nginx redis-server supervisor python3-dev python3-virtualenv python3-pip vim
- Create this folder: /var/www/lofcrypto
- cd /var/www/lofcrypto
- virtualenv -p python3 venv
- source venv/bin/activate
- pip install pipenv
- pipenv install
- pipenv install psycopg2-binary uwsgi
- cp example.env .env
- nano .env # change DJANGO_ALLOWED_HOSTS to yours
- su postgres -c 'createuser lofcrypto -lP' # password: lofcrypto
- su postgres -c 'createdb lofcrypto -O lofcrypto -E utf8 -l en_US.UTF-8 -T template0'
- ./manage.py migrate
- ./manage.py createsuperuser # create user for admin panel
- ./manage.py collectstatic --noinput
- cp nginx.conf /etc/nginx/sites-enabled/lofcrypto.conf
- nano /etc/nginx/sites-enabled/lofcrypto.conf # change server_name to your domain
- cp supervisor.conf /etc/supervisor/conf.d/lofcrypto.conf
- systemctl enable nginx postgresql supervisor redis-server
- systemctl restart nginx postgresql supervisor redis-server
steedmicro / marketplaceinternal Goto Github PK
View Code? Open in Web Editor NEWThis is a Django Project combined with Blockchain Technology.