git - Directory Structure and Conventions for Development and Production versions of website -


i have project maintain git , deploy using beanstalk. have built javascript components using requirejs , optimizing code @ end using requirejs's optimization tool. use tool replicate files of site , code minmized , concatenated in new directory. however, unsure how best place directory , manage deployment via git , beanstalk. git repository maintains 3 branches: develop, master, , production. deploy production live production server. here thinking. keep 3 branches modify repo have base directory includes 2 directories, main project , optimized , minimized version siblings, so:

project   raw-version-of-site   minimized-version-of-site 

i setup beanstalk -- , sure possible -- deploy minimized-version-of-site folder production server.

my question 1) way go this? , 2) naming conventions should use 2 subdirectories. thought of trunk , dist, not sure if these conventions have other meanings , confusing things. secondly, bit worried using trunk example confusing fact there underlying structure of branches. thoughts?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -