blog setup howto

Installation manual blog

HOWTO get started

  1. Download/get the source from https://github.com/rikedje/blog
  2. Modify the default theme to your liking (I have used bootstrap)
  3. Modify the code to your liking
  4. Set the LoadSecretKey in Web.Config to att string with length > 5 or the site wont load
  5. Deploy to your provider
  6. Upload your posts
  7. Upload your pages

HOWTO publish posts

  1. FTP posts to ~/App_Data/Blog. Posts are stored in a folderstructure based on YYYY\MM\DD.
  2. FTP pages to ~/App_Data/Pages
  3. FTP images to ~/App_Data/Content/Images

This is how I publish my posts, all of them

// In publish_blog.bat
pushd
cd c:\batch
Invoke-Expression ".\ncftpput -R -u username -p password -d c:\batch\log\ncftpput.log ftp.edje.se /public_html/App_Data/Blog C:\Users\rikard\Dropbox\BlogEdjeSe\Blog\*.* "
Invoke-Expression ".\ncftpput -R -u username -p password -d c:\batch\log\ncftpput.log ftp.edje.se /public_html/App_Data/Pages C:\Users\rikard\Dropbox\BlogEdjeSe\Pages\*.*"
Invoke-Expression ".\ncftpput -R -u username -p password -d c:\batch\log\ncftpput.log ftp.edje.se /public_html/Content/Images C:\Users\rikard\Dropbox\BlogEdjeSe\Images\*.*"
popd

Invoke-WebRequest http://www.edje.se/home/reload?key=123456789