Giter Club home page Giter Club logo

adelle's Introduction

Adelle's website

A combination of plain html tests and a WordPress instalation.

Insstructions Video Conversion In MacOS

Install Homebrew

Make sure you install all requirements, and follow the instructions below (This can take a while, espcially because of XCode):

https://github.com/Homebrew/homebrew/wiki/Installation

Install homebrew to install packages for video conversion.

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install FFMPEG

Make sure brew is installed correclty and working correctly:

brew doctor

Install ffmpeg to convert videos to mp4 and webm and generate thumbnails. This may go smoothly or it may not (you've been warned!):

brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-openjpeg --with-theora --with-tools --with-libvpx

To make sure this is working, try:

ffmpeg -v

Install FFMPEG2THEORA

Install ffmpeg2theora in order to convert mp4s to ogv for Firefox.

brew install ffmpeg2theora

Converting Videos

Put all the videos you want to convert in:

converted-videos/raw-videos/un-converted

Run the following script (you shouldn't need to install any Python libraries):

python converted-videos/convert_video.py

When done, move all videos in un-converted to covnerted.

Deploying Site on MacOS

In order to deploy code, restart the server or restart mysql you need Fabric.

To install Fabric, first install PIP.

sudo easy_install pip

You can also install PIP through Homebrew's python instalation.

brew install python

Then install Fabric.

pip install fabric

To actually deploy the site, make sure you have a copy of the repo and that you're in it:

git clone [email protected]:thejsj/Adelle.git

Then go to that directory and run the fabric command:

cd ./Adelle
fab deploy:environment=NAME_OF_YOUR_ENVIRONMENT

For this a config.py file is need that has the following structure:

class AttrDict(dict):
    def __init__(self, *args, **kwargs):
        super(AttrDict, self).__init__(*args, **kwargs)
        self.__dict__ = self

servers = {
    # Statging
    'NAME_OF_YOUR_ENVIRONMENT' : AttrDict({
        'host_string' : 'IP_ADDRESS',
        'user': 'USER',
        'password' : 'PASSWORD',
        'main_path' : '/var/www/NAME_OF_YOUR_SITE/public_html/',
        'theme_path' : '/var/www/NAME_OF_YOUR_SITE/public_html/content/themes/adelle-theme/'
    }),
}

adelle's People

Contributors

thejsj avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

adelle's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.