-
Notifications
You must be signed in to change notification settings - Fork 2
Browsing an archive
Lukas Rosenstock edited this page Mar 20, 2017
·
1 revision
phpADNSite can be used to browse and serve your app.net posts if you have created an archive prior to the "ADNpocalypse". This page quickly explains how to do that:
- Make sure you have PHP and composer installed on your machine.
- Create a directory in which you want to install phpADNSite and change to that directory in a terminal.
- Run the following command to download phpADNSite and its dependencies:
composer create-project "lukasros/phpadnsite" . dev-master - Extract the archive that you've exported from ADN. There'll be one file ending in
-posts.json, you'll only need that one in the next step. - Copy the following file into a text editor and change the values for username under backend_config and filename under storage_config, then store it as
config.phpin your directory. - Start the PHP webserver:
php -S 0.0.0.0:9000 - Open your browser and go to http://localhost:9000/ and see your ADN posts.
config.php template/example:
<?php
return array(
'domains' => array(
'*' => array(
'backend_config' => array(
'username' => 'lukasros' // <- replace this value
),
'theme_config' => array('name' => 'bootstrap-default')
)
),
'plugins' => array(),
'backend' => array(
'class' => 'PhpADNSite\Core\StorageClient',
'config' => array(
'storage_class' => 'PhpADNSite\PostStorages\ADNExportStorage',
'storage_config' => array(
'filename' => '/Users/lukas/Downloads/appdotnet-data-lukasros-1489524235/appdotnet-data-lukasros-1489524235-posts.json' // <- replace this value
)
)
)
);