LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   recommended directory structure for application system development (https://www.linuxquestions.org/questions/linux-general-1/recommended-directory-structure-for-application-system-development-804521/)

mherboly 04-27-2010 09:22 AM

recommended directory structure for application system development
 
HI Gentlemen,

I have to set up my development environment under OEL 5.4. The internal directory structure is more or less fixed, the question is where to put the whole application tree in standard FHS for the development phase. For production, the system will be deployed on a server where data is kept with an Oracle 11g database. Development goes with JDeveloper which has its own internal application/project directory structure; however, I whould like to be independent from this. Unfortunately, by carefully studying the web for FHS, if I will adhere to it I only find ready-made packages to put under /opt, for example. No development aspects are mentioned. Please make some proposal, possibly with respect to best practices.

Thanks, regards
Miklos HERBOLY

kbp 04-27-2010 09:59 AM

When you say you've set up your dev environment, does that mean you're using some kind of version control ? ... cvs, subversion, git ?

mherboly 04-28-2010 02:32 AM

HI,

Instead of "you've set up"
I wrote "I have to set up", that is, the directory structure exists for Windows and it should be established under Linux, too. The internal structure is irrelevant--important is only where to "hang in" the whole tree in the standard FHS. Version control is not targeted at the moment.

kbp 04-28-2010 08:59 AM

Sorry... generally your app should go under /opt, I'd try to go with /opt/<name>-<version>/ and create symlinks during the deployment like:

$ ls /opt
<name>-<version>/
<name>-<oldversion>/
<name>-current -> /opt/<name>-<version>
<name>-previous -> /opt/<name>-<oldversion>

hth

mherboly 04-29-2010 04:27 AM

Many thanks for the clear explanation. I will do as you proposed.

Regards,
Miklos


All times are GMT -5. The time now is 07:55 PM.