KDE.org/Dev setup
Appearance
< KDE.org
Under Construction |
---|
This is a new page, currently under construction! |
For those willing to work on kde.org.
To run kde.org locally, we need to install php and apache and to configure apache to execute php files. See Apache doc/Debian doc/Arch Linux wiki/... for how to do it.
First we need to get the source directories from svn and git.
svn checkout svn://anonsvn.kde.org/home/kde/trunk/www/sites/www kde-org cd kde-org git clone [email protected]:websites/kde-org-applications.git applications cd applications git clone [email protected]:websites/kde-org-applications-extractor.git
Now lets get the metadata for kde.org/applications ;)
cd kde-org-applications-extractor bundle install --path vendor/bundle bundle exec appstream.rb bundle exec appstream_mkindex.rb
Now we can configure apache vhost. Please refer to your distribution documentation about how to enable vhost. Here is an example for Arch Linux:
<VirtualHost *:80> ServerAdmin [email protected] ServerName localhost ServerAlias kde.localhost DocumentRoot /path/to/kde-org <Directory /path/to/kde-org> AllowOverride All # Order Allow,Deny Allow from All Require all granted FallbackResource /index.php </Directory> ErrorLog /path/to/apache/log/apps.kde.org-error.log CustomLog /path/to/apache/log/apps.kde.org.log combined </VirtualHost>