Reputation: 85
I have an app created in Django and React, but there are few problems that I am facing mainly :-
As I will have a large database(postgres) exclusily for a single user, I am creating different AWS instance(t2.micro) for every user. (we are a startup so economical to use t2.micro)
Whenever there is a new user then I have to go and manually install postgres, setup nginx and other important things and this is just for Django in EC2, I am not even talking about React in S3.
Solutions I am looking for :-
Things to consider :-
We are a startup and can not depend on paid services really much. Please do not ask me to use a single server for every user as we are using 3rd party apis to get data and will face problems if there are more users requesting from same IP, also it puts a lot of load on the RAM.
Any suggestion would be greatly appreciated.
Upvotes: 1
Views: 162
Reputation: 85
BTW This is the helper script I wrote if someone wanted to know -
#!/bin/bash
ip_add=`curl wgetip.com`
echo $ip_add
echo 'server {
listen 80;
server_name '$ip_add';
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/ubuntu/ThanosThriveAWS/Thanos;
}
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/ThanosThriveAWS/Thanos/Thanos.sock;
}
}
' >> /home/ubuntu/scripts/new_gunicorn
sudo cp /home/ubuntu/scripts/new_gunicorn /etc/nginx/sites-available/gunicorn
sudo systemctl restart nginx
Upvotes: 0
Reputation: 129
I used travis for merges into master branch it redeploys your code whenever your master branch changes but I exactly don't know they have an options you want, I recommend you to examine that site they may have a solution for you.
Upvotes: 0
Reputation: 1001
You can do everything you need by:
Upvotes: 1