beeldengeluid / mediasuite-website

Frontend code repository for the CLARIAH Media Suite website.
https://mediasuite.clariah.nl
0 stars 0 forks source link

Deploy main branch to mediasuite.clariah.nl at night

Media Suite website

This is the code repository for the website content within the CLARIAH Media Suite

The main code repository (private) for the Media Suite includes the automatically generated website content (contained in the _site directory mentioned below) of this repo here, however the code and contents of this repo can also function on its own.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. To get this website generated on a local machine, you need to install Jekyl, a static site generator.

Prerequisites

See detailed installation instructions for your operating system at: https://jekyllrb.com/docs/installation/

Example for Ubuntu

sudo apt install ruby-full build-essential zlib1g-dev

Setup Ruby Gems installation directory

echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Installing

# Install Jekyll and Bundler gems through RubyGems
gem install jekyll bundler

# Change into your new directory
cd mediasuite-website

# Install dependencies
bundle install

# Build the site on the preview server
bundle exec jekyll serve

# Now browse to http://127.0.0.1:4000

# If you don't want to serve the site on localhost, but just want to build the site and watch for changes, 
# then use this instead of `bundle exec jekyll serve`:

# Build the source into the /_site directory 
bundle exec jekyll build

# Watch files for changes and automatically trigger build into /_site directory 
# (eg. for development in conjunction with clariah-mediasuite)
bundle exec jekyll build --watch

Deployment

Just about any traditional web hosting provider will let you upload files to their servers over FTP. To upload a Jekyll site to a web host using FTP, simply run the jekyll build command and copy the contents of the generated _site folder to the root folder of your hosting account. This is most likely to be the httpdocs or public_html folder on most hosting providers.

Built with

License

The content of this project itself is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License, and the underlying source code used to format and display that content is licensed under the MIT license.