Reputation: 893
Finally the time has come and I'm ready to deploy my first django project. I'm a newbie in web development stuff and now the real fun begins.
This is a low scale site for computer jobs. I want to start with a free tier and grow from there as need emerges.
I've read some guides regarding django project deployment but could not find all answers. so hope some guys here could help me out:
10x guys!
Upvotes: 1
Views: 2234
Reputation: 55932
I've been thinking on getting Amazon EC2 free tier VPS, is this a good option?
If it fufills your technology requirements, ram, cpu, memory; it is a good option.
my local development machine runs Ubuntu, I've read that i could install 10GB Ubuntu image, do you recommend such image?
Might as well keep your environments the same if you can. If you can match up versions that is another plus
should I go with apache or lighter web server?
Either, Apache would probably be easier to deploy at this point because you don't have to worry about running it as a servicer ( using a program like like supervisor
to manage it).
Whichever one you choose, there is an abundance of tutorials online describing how to set up django.
My project is hosted on bitbucket, I just need to checkout my project on my VPS right?
That is one way. There are lots of ways to deploy. I like syncing the actual files using fabric. That way your production server doesn't need to know about your bitbucket account. Once again, there are so many tutorials online describing deploying django. Fabric is a great place to start.
What about data backups? I would like to backup my mySQL DB
There exists lots of tools for this. Plenty of premade tools and shell scripts. I have used automysqlbackup
and it works great http://sourceforge.net/projects/automysqlbackup/
How do you recommend me serving the static files?
Make sure the webserver serves them. If you deploy through apache you can set up an alias to serve static files very easily. You can come up with a collectstatic deployment scheme to put your static on s3, but for a simple site apache would be just fine
I'm looking for a good tutorial on how to setup AWS with django and mysql
Perhaps you can find a tutorial that covers this, most likely you might just find a tutorial :
Upvotes: 3