Blog at http://pirsquare.io
Required Python Dependencies:
pip install pelican markdown awscli
Once you have installed the required dependencies, run commands below
cd /opt
# Clone project
git clone https://github.com/pirsquare/pirsquare.io.git
git clone [email protected]:pirsquare/pirsquare.io.git
# In pelican root directory, update output directory for local testing
pelican content -o output -s pelicanconf.py
# Open html pages inside output directory
# Configure aws cli with access key and secret key.
# For region, use `ap-southeast-1` since we are using S3 in Singapore.
aws configure
# In pelican root directory, update the output directory.
pelican content -o output -s publishconf.py
# In pelican root directory, run following command to sync output directory.
# "audiencepi.com" here is the the S3 bucket name
aws s3 sync output s3://pirsquare.io --delete --acl "public-read" \
--cache-control "public, max-age=43200"