Leonardo
Leonardo
complicated?
Jimmies San
Leonardo
ooooooooooohhhhhhhhhhhhhhhhhhhhhh
Jimmies San
no, really easy to use but waste a lot of resource/billing
Leonardo
what you advice me?
Leonardo
digital ocean/ heroku...?
Jimmies San
it depends: you need a space to deploy your local app? without heavy load/users ?
Leonardo
yeah, is just to show the project to my customer
Jimmies San
so a vps it's, for me, the best option: spend very few and have a full env where create different vhosts
Jimmies San
if you're in Europe there is Hetzner that is amazing
Jimmies San
but datacenter only in europe, or DO or Linode are ok too [dc worldwide]
Leonardo
i'm in brazil
Leonardo
i would like to setup a dev, homolog and production machines
Leonardo
maybe not dev, that can be my own machine
inchidi
Jimmies San
vps with different system users: one per app.
Jimmies San
with different vhosts [third level it's ok too]
inchidi
Jimmies San
a nginx+letsencrypt, a uwsgi empereor with some vassals, git to pull repository and you're ready :)
Leonardo
Leonardo
i'm just lost about what to do.
Leonardo
i just wanna configure a machine to expose the website
Leonardo
and don't use my own machine for that
Leonardo
i made an ec2 deploy, but the staticfiles not worked, so i'm looking for another option
inchidi
i don't know
if you just want to show the project to your client, and it doenst need to active 24 hours, you can use ngrok
inchidi
ngrok is app that "make your localhost online"
Leonardo
Leonardo
he must be able to test that anytime
Jimmies San
Rajjix
There is a step by step guide on digital ocean that i used 2 weeks ago
Rajjix
30 min my site is running with nginx unicorn
Rajjix
And serving static files from nginx as well
Rajjix
Works perfectly till now 2 weeks uptime
Rajjix
For debian
Rajjix
And you get a 2 month trial period for 1$ so it’s great for demonstrating projects for potential clients
Leonardo
inchidi
Rajjix
I sent you the guide yesterday should have just read it instead of wasting all this time asking around
Leonardo
Jimmies San
Leonardo
Jimmies San
😂😂😂😂
Leonardo
Jimmies San
is this ec2 running now? can I have the access? i will fix you all, promise :D
inchidi
Jimmies San
for me the problem is SSL :D
inchidi
Jimmies San
some sort of settings misconfigured :P
Leonardo
hold on, let me check if i machine is terminated
Jimmies San
there there
"no one can solve this" -> i need to solve this :D
Rajjix
Leonardo
Leonardo
i was raging
Jimmies San
really: to setup a droplet with nginx+postgres+uwsgi .... 10 minutes
Jimmies San
and you're ready for your life
Leonardo
that's my first time working with deploy, and i'm braindead
Leonardo
but, here we go again...
Leonardo
Leonardo
i followed that guide https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04#create-and-configure-a-new-django-project
Leonardo
in a ec2 ubunu 18.04
Jimmies San
naaa, ubuntu is a shithole. if aws use amazonlinux, if vps use centos
Jimmies San
debian based are ok to learn or play: not to go on production :)
Jimmies San
[and dance with the flame now!! :D ]
Jimmies San
Leonardo
ok can you guide me how to do that?
Jimmies San
install nginx+postgres+python3+letsencrypt
install pipfile
configure nginx+letsencrypt
createdb
start uwsgi empereor
Leonardo
ok, where?
Jimmies San
yes, turn on the vps and i paste in private the commands to you
Leonardo
ok let me launch an amazonlinux
Jimmies San
not ec2
Jimmies San
lightsail cost less and is better for your use case
Leonardo
i'm using aws, i did not found any lightsail there
Jimmies San
https://aws.amazon.com/lightsail/
Jimmies San
it's like a vps droplet, but on aws