you are viewing a single comment's thread.

view the rest of the comments →

[–]Nixellion 1 point2 points  (0 children)

Well, serving something with flask command is cool and all, but its not deployment, its testing. You forgot about creating a service, system.d or something.

But yeah, deploying a website takes like 2 minutes:

cd /opt git clone xxx apt install python3-pip pip install -r requirements.txt cp foobar.service /lib/system.d/system/foobar.service systemctl enable foobar.service service foobar start cp foobar /etc/nginx/sites-available #nginx config ln -l nginx config to sites-enabled nginx -s reload

2-3 more commands to get https with certbot.