Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

python - Getting started with Django on Amazon Web Services -


i'm starting migrate few applications amazon web services. applications python/django apps, running on mysql.

i plan on using ec2 , ebs starters.

i'm looking few things:

  1. a step-by-step tutorial explaining how deploy django on aws. i've looked around, tutorials 2 years ago, i'm worried they're outdated.

  2. i'm trying understand, ami should start? know there's bitnami ami comes preconfigured django goodiness, i've seen lot of other sources should start basic (clean) linux box , install yourself. why?

  3. are there other important things should thinking about? have little sysadmining experience (the apps on webfaction), i'm not sure should thinking about.

a few points:

  • i plan on running several applications on same ec2 instance, assume that's possible?
  • i'm using virtualenv separate between various apps right now, assume can continue doing same on ec2 instance?

thanks!

there nothing "special" ec2 here. provides bare (or preconfigured custom ami) system instance - have access whole virtualized system, can safely break things on own. think specific vps.

you have prepare deployment yourself, not difficult - follow documentation. i'd advice run basic linux distro , add needed stuff rely on preconfigured image. questions:

  1. you need 2 things: setup instance (accounts, needed software, other custom setup, linux administration guide should handy) , prepare django app deployment (deploy python code, hook web server). latter, general deployment instructions django can applied here ( http://docs.djangoproject.com/en/dev/howto/deployment/ ).

  2. start ami favorite linux distro, , add necessary software it's repository.

  3. mount , use ebs possible data. when rebooted, ec2 instance wipe out it's data, prepared this. system snapshots ami have quick recovery on failure.

yes, can deploy several applications on 1 instance, mind ec2 instance virtualized (with quite high "virtualization tax" imo, smaller instances), might run general performance problems. assume you'd need migrate bigger instance/multiple instances after time.

virtualenv should default deployment tool. yes, can use here too.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -