packaging web-apps

User avatar
marcel
Posts: 160
Joined: Sat May 16, 2009 12:46 am
Location: Netherlands

packaging web-apps

Postby marcel » Wed Nov 18, 2009 8:57 am

What are the basic steps to packaging a web-app? I've read that you diff files. Another questions raises is possible to diff a whole directorie to see what file has changed?

EDIT: i used this command to diff two directories:

Code: Select all

diff -r -N -U3 html Joomla_1.5.15-Stable-Full_Package > diff.directories.txt
is this correct?
My HDA cpu: E1400 2Ghz; motherboard: Gigabyte GA-G33M-S2H; memory: Team 2Gb DDR2; 200GB OS HDD, 2x western digital GP 1TB storage HDDs; case: Antec P182

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: packaging web-apps

Postby cpg » Wed Nov 18, 2009 1:02 pm

in general, yes, that is correct, though much of the time, it's best to avoid patching, since that's the ultimate resource.

but more to the point, in practice, when patching, the goal is to produce a patch that applies properly.

diff will give you a patch, however, it may not apply properly.

takes some trial and error, and learning. we can help you out.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: packaging web-apps

Postby cpg » Wed Nov 18, 2009 1:11 pm

did you see the diff and patch page, btw?

some useful tips there.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
marcel
Posts: 160
Joined: Sat May 16, 2009 12:46 am
Location: Netherlands

Re: packaging web-apps

Postby marcel » Thu Nov 19, 2009 8:47 am

Thanks for the link cpg. Interesting stuff.

I have a following question. What is this all about? (piece of the Joomla install script)

Code: Select all

sed -e 's/#_/jos/g' -i html/installation/sql/mysql/joomla.sql; mysql -ujoomla -pjoomla joomla < html/installation/sql/mysql/joomla.sql; sed -e 's/#_/jos/g' -i html/installation/sql/mysql/sample_data.sql; mysql -ujoomla -pjoomla joomla < html/installation/sql/mysql/sample_data.sql; mysql -ujoomla -pjoomla joomla << 'EOF' INSERT INTO `jos_core_acl_aro` VALUES (10,'users','62',0,'Administrator',0); INSERT INTO `jos_core_acl_groups_aro_map` VALUES (25,'',10); INSERT INTO `jos_users` VALUES (62,'Administrator','admin','amahi@joomla.org','dcf6e17862185afcf421a21d7b5c837a:JxS1wat8PE3EJBIgguOc8wEIS6PtknCf','Super Administrator',0,1,25,'2009-07-03 14:03:43','0000-00-00 00:00:00','',''); EOF
Can someone explain this to me? I think it has something to do with the mysql database.
My HDA cpu: E1400 2Ghz; motherboard: Gigabyte GA-G33M-S2H; memory: Team 2Gb DDR2; 200GB OS HDD, 2x western digital GP 1TB storage HDDs; case: Antec P182

bsk
Posts: 280
Joined: Sun May 03, 2009 7:18 pm
Location: Tennessee
Contact:

Re: packaging web-apps

Postby bsk » Thu Nov 19, 2009 9:12 am

Thats what pumps the settings into the database of joomla (mySQL database).

Like, in a normal install, you would go through steps to enter sql database username, name, pw, etc and go through an install procedure. That is, if you were to unzip and upload to your own server, and travel to, say, http://joomla/install. In this case, it does all of this for you, so when you click on http://joomla, it takes you straight to the web-page without having to install manually.
Having problems with connecting to the internet? Try the Network Troubleshooter.

Not sure what your Gateway IP? Head on over to the Find Your Gateway IP page to find out easily.

Image

rampage537
Posts: 124
Joined: Mon Jun 29, 2009 9:41 am
Location: Hazel Park, MI
Contact:

Re: packaging web-apps

Postby rampage537 » Wed Nov 25, 2009 10:06 am

marcel, talk to bigfoot65 in the irc is has packaged around 60 apps so he is now a bit of a expert in packaging apps
Testmaster Manager
Amahi HDA Custom Dual 2.7 GHz, 3 GB DDR2 (667MHz) Ram, 80GB HDD for OS + 1TB and 320GB HDD for Share Drives

Who is online

Users browsing this forum: No registered users and 38 guests