Giter Site home page Giter Site logo

webplatform / blog-service Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 25.33 MB

WordPress WebPlatform blog theme served at http://blog.webplatform.org/

License: GNU General Public License v2.0

ApacheConf 1.64% JavaScript 0.97% PHP 61.60% HTML 0.17% CSS 35.62%

blog-service's Introduction

WebPlatform Blog

Theme for blog.webplatform.org for WebPlatform.

Expected plugins

Those plugins are expected to be installed. Installation as submodules #TODO

To install

  • Clone this repo

  • Get all submodules

      git submodule update --init --recursive
    
  • Make sure you have the following php modules:

    • php5-memcache
  • Install the Expected plugins (see note above this section)

  • Copy error pages static files. Automate with salt #TODO

      wget www.webplatform.org/errors/{503,500,404,403}.html
    

Use with Vagrant and VirtualBox

  1. This will create a master less Salt managed VM.

  2. Install plugins first:

     vagrant plugin install vagrant-salt
     vagrant plugin install vagrant-vbguest
    
  3. Clone full project, get dependencies

     // git clone ...
     git submodule update --init --recursive
     patch --binary -p1 < assets/revision-control-fixes.patch
    
  4. Create the VM

     vagrant up
    
  5. Once if finishes, you might see error messages. Sorry about that, it should be fixed soon. We need to connect to the VM and do some things manually.

     sudo -s
     DEBIAN_FRONTEND=noninteractive apt-get -q -y install mariadb-server
     apt-get -y autoremove
     exit
     salt state.highstate
    

    The latter is an alias in the salt/states/wordpress/dev.sls file that creates an alias to not need su privileges to issue salt commands.

  6. Once its done, exit and check for the VM IP address.

     vagrant ssh
    

Notice the IP address Vagrant announces. Adjust your local hosts file with it

    172.28.128.3 blog.local

NOTE: In Windows its generally in %windir%\system32 in drivers\etc and called hosts (without file extension). If you never changed a hosts file on Microsoft Windows, refer to this Microsoft Support Knowledge base article.

  1. Ensure you have a local.php

     cp local.php.example local.php
    
  2. Install the development database "fixtures"

     mysql -u root wordpress < assets/fixtures-dev.sql
    
  3. Then allow writing on some folders. Those are workarounds because /vagrant is not really in the VM and the web server would throw errors because the file system will fail

     mkdir /tmp/wp-cache
     ln -s /tmp/wp-cache /vagrant/wp-content/cache
    

Documentation

TODO, eventually

  1. Forbid to update plugins
  2. Commit back upstream revision-control plugin patch using SVN. See issue comment
  3. Change Memcached handler?

Please note

In a near future, all assets (CSS, JavaScript, images) that are specific for creating the image of the WebPlatform site should be hosted/managed from within the www.webplatform.org project. Any other code that is specific to wordpress can stay in this repository.

blog-service's People

Contributors

garbee avatar renoirb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.