Page 1 of 1

packaging web-apps

Posted: Wed Nov 18, 2009 8:57 am
by marcel
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?

Re: packaging web-apps

Posted: Wed Nov 18, 2009 1:02 pm
by cpg
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.

Re: packaging web-apps

Posted: Wed Nov 18, 2009 1:11 pm
by cpg
did you see the diff and patch page, btw?

some useful tips there.

Re: packaging web-apps

Posted: Thu Nov 19, 2009 8:47 am
by marcel
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.

Re: packaging web-apps

Posted: Thu Nov 19, 2009 9:12 am
by bsk
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.

Re: packaging web-apps

Posted: Wed Nov 25, 2009 10:06 am
by rampage537
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