Getting Started • Original Setup • Resources
Getting Started ▴
Prerequisites
Download|Clone & Run
Steps to download repository:
## go to your working directory
cd <your-choosen-directory-path>
## download and unzip
wget https://github.com/VaporExamplesLab/QuicWebbUpdater/archive/master.zip
unzip master.zip -d QuicWebbUpdater
rm master.zip # remove download
cd QuicWebbUpdater-master
# update dependencies
# with `-y` yes to generate and open Xcode project
vapor update -y
Or, alternate steps to clone repository instead of download:
## go to your working directory
cd <your-choosen-directory-path>
## either clone
## add --bare option for an unattached instance
git clone [email protected]:VaporExamplesLab/QuicWebbUpdater.git
cd QuicWebbUpdater
# update dependencies
# with `-y` yes to generate and open Xcode project
vapor update -y
Set Xcode scheme Run Arguments.
--original-dir='path_original_blog_content'
--processed-dir='path_process_blog_content'
--verbose
Click the run button and check the results in a browser at http://localhost:8080
.
Original Setup ▴
The following steps were completed to create the QuicWebbUpdater
example.
mkdir QuicWebbUpdater
cd QuicWebbUpdater
swift package init --type executable
swift package generate-xcodeproj
open QuicWebbUpdater.xcodeproj/
Setting "upload" creation dates
cd <PATH>/blog_content_original/markdown
## -t changes access and modified times.
touch -t 201811220800 2018/11/FirstPost.md
touch 2018/11/FirstPost_files/*
touch 2018/11/FirstPost_files/figure1.png
touch 2018/11/FirstPost_files/figure2.jpg
touch 2018/11/FirstPost_files/figure2.png
touch 2018/11/FirstPost_files/figure3.pdf
touch 2018/11/FirstPost_files/figure3.png
touch 2018/11/FirstPost_files/figure4.gif
touch 2018/11/FirstPost_files/figure4.png
touch 2018/11/FirstPost_files/more/*
touch 2018/11/FirstPost_files/more/folder-2103508.svg