GithubHelp home page GithubHelp logo

h4msk1 / website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbwebb-se/website

0.0 1.0 0.0 347.09 MB

This is the main website for dbwebb.se.

Home Page: https://dbwebb.se

License: Other

Makefile 1.75% PHP 56.07% CSS 12.29% Shell 1.51% HTML 23.31% JavaScript 5.08%

website's Introduction

dbwebb.se website

Join the chat at https://gitter.im/mosbth/dbwebb

This is the main website for dbwebb.se, live at https://dbwebb.se.

Really short story

Prepare to run in docker and update all local files.

make update-docker

Start up the webserver using docker-compose.

docker-compose up -d website

Open a web browser to localhost:8080 to view the site.

Close down the docker container.

docker-compose down website

Short story

Works for me on Debian.

$ sudo apt-get install apache2 php5 libapache2-mod-php5 php5-dev php-pear php5-gd
$ git clone <the original or your forked repo>
$ cd <the original or your forked repo>
$ make etc-hosts
$ make virtual-host
$ make update

Now open your browser at local.dbwebb.se and browse the website.

If you need to upgrade your existing installation you can just redo it all.

$ make etc-hosts virtual-host update

For developers and maintainers

This is guidelines on how to setup your own local development environment for this website.

Apache and PHP

On Windows and Mac OS you may use XAMPP.

On Debian this will make it happen, it is Apache2 and PHP5 (with pecl and GD).

$ sudo apt-get install apache2 php5 libapache2-mod-php5 php5-dev php-pear php5-gd

Install Composer and YAML.

Apache virtual host

You need a a Apache virtual host as local.dbwebb.se.

  1. Clone the website to ~/git/dbwebb.se.
$ git clone <the original or your forked repo>
$ cd <the original or your forked repo>
  1. Create an entry in the /etc/hosts for local.dbwebb.se.
$ make etc-hosts
  1. Create the virtual host, the basis can be found here.
$ make virtual-host-echo
$ make virtual-host       # On Debian to just do it
  1. Make and publish to the local structure at ~/htdocs/dbwebb.se.
$ make update
  1. Restart the webserver and open your browser at local.dbwebb.se and browse the website.

Keep updated

Update the code base, the external packages and publish locally.

$ make update

Develop and test locally

Make changes in your repo, publish using make local-publish and reload your browser.

# Do changes and then publish them locally.
$ make local-publish

# Clear the cache when publishing
$ make local-publish-clear

Install all submodules

Some content is available in external submodules. To install them, where you have the properties to do so, do like this.

$ make submodule-init local-publish

To keep updated, including all submodules.

$ make update-all
 .                                                             
..:  Copyright (c) 2012 - 2017 Mikael Roos, [email protected]   

website's People

Contributors

andreasarne avatar dennisskoko avatar emilfolino avatar lewenhagen avatar litemerafrukt avatar livila avatar magnusgreiff avatar mosbth avatar ocpu avatar palkess avatar pejg12 avatar schanihbg avatar spacelenore avatar thulin82 avatar zero2k avatar

Watchers

 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.