Leonardo
complicated?
Jimmies San
why?
'cause is shit :)
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
Jimmies San
vps with different system users: one per app.
Jimmies San
with different vhosts [third level it's ok too]
inchidi
maybe not dev, that can be my own machine
will ngrok work for your case?
Jimmies San
a nginx+letsencrypt, a uwsgi empereor with some vassals, git to pull repository and you're ready :)
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
he must be able to test that anytime
Jimmies San
i made an ec2 deploy, but the staticfiles not worked, so i'm looking for another option
maybe the problem is not the ec2 ... maybe is your configuration :\
inchidi
he must be able to test that anytime
alright then, what's the problem with your static files?
Rajjix
he must be able to test that anytime
Just save yourself the trouble and go to digital locean
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
maybe the problem is not the ec2 ... maybe is your configuration :\
sure thing the ec2 is not the problem, but a lot of people helped me and we not solve it, so i'm done with that
inchidi
nginx is not serving them
what the log said?
Rajjix
I sent you the guide yesterday should have just read it instead of wasting all this time asking around
Leonardo
Jimmies San
sure thing the ec2 is not the problem, but a lot of people helped me and we not solve it, so i'm done with that
if you say this... i... i have to solve this problem now: it's like a challenge
Jimmies San
😂😂😂😂
inchidi
nothing 😊
which log you see?
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
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
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
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 ]
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
ok let me launch an amazonlinux
are you using aws? use a lightsail
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