So so we've made an accounting application I find I need even more so I'll be sure to expand it further. But for now I have to share it with accountant.
That shouldn't cost too much, but it should still run a bit stable and can be expanded. This application is not yet in production and will have two or three users so a very small server will suffice.
We will order it from Hetzner. That's a good provider. For small and large if necessary, we can still take a dedicated host. Backup, Firewall load balancer everything is provided.. and servers are in different EU location. So you can make good choice.
Don't forget to enable backup and firewall.
Password has been forwarded by email.
ssh -v -o ServerAliveInterval=60 root@65.108.251.22
Login via ssh.
git clone https://@bitbucket.org/
vim run_hetzner.bash
python3 manage.py runserver 65.108.251.137:80
chmod -R run_hetzner.bash
apt install python3-pip
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-pip
??? Ops..ai.. What is this...
sudo add-apt-repository universe
sudo apt-get update
Ok, it working..
pip3 install django
./run_hetzner.bash
vim quickbook/settings.py
ALLOWED_HOSTS = ['quickbook.site', '..'
Update media url..
settings.py
MEDIA_URL = "media/"
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
url.py
from django.conf import settings
from django.conf.urls.static import static
+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Comments
Post a Comment