Giter Site home page Giter Site logo

isholgueras / drupalcampspain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asociaciondrupales/drupalcampspain

0.0 1.0 0.0 4.93 MB

DrupalCamp Spain webite

License: GNU General Public License v2.0

ApacheConf 2.25% PHP 22.77% JavaScript 25.94% CSS 40.33% HTML 8.51% Shell 0.21%

drupalcampspain's Introduction

DrupalCamp Spain 2017

Installation

  1. Clone this repository.
  2. Run 'composer install' in the document root.
  3. Copy web/sites/default/default.settings.local.php into web/sites/default/settings.local.php.
  4. Open web/sites/default/settings.local.php and adjust it to your local environment needs. Make sure that you create the database.
  5. Download a database dump from Jenkins (ask the maintainers for the URL). Alternatively, jump to the next section to install a sample database.
  6. Run the following commands to install the database dump and update the database:
cd web
drush sql-cli < dump.sql
drush updb -y
drush cim sync -y
drush cr
drush en stage_file_proxy -y
  1. Open the homepage as administrator with drush uli.

Installing without the production database

If you can't access to a production database dump, then use the following commands to install a sample database:

drush si --config-dir=../config -y
drush cim sync -y
drush ev _dcamp_add_content_blocks_for_frontpage()

Updating your local environment

Run git checkout master && git pull. Then repeat steps 5th onwards from the above section.

Development

Theme

  1. Go to web/themes/dcamp_base_theme
  2. Run 'npm install' (you might need to install node/npm first)
  3. Install LiveReload for chrome (https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en)
  4. Run 'gulp' in the terminal
  5. Activate LiveReload in chrome
  6. Happy styling!

Docker Environment

We based our local environment in the[https://github.com/keopx/docker-lamp](keopx's Docker-lamp).

Prerequisites

You need to have installer docker and docker-compose. Assure that you don't have running anything in the 80, 443, 1025, 3306 and 8025 ports

Use

Everything is configured to setup the local environment. Just follow this steps:

  1. Host domain is set as dc2017.local, so add to your hosts files 127.0.0.1 dc2017.local
  2. There is a helper script, in docker-lamp/local-docker.sh. With this script you are able to:
    1. ./docker-lamp/local-docker.sh start: Start services
    2. ./docker-lamp/local-docker.sh stop: Stop services
    3. ./docker-lamp/local-docker.sh restart: Restart services
    4. ./docker-lamp/local-docker.sh goto: Get into ssh session on web_1 to execute composer, drush,...
    5. ./docker-lamp/local-docker.sh gotoroot: Get into ssh session in web_1 as root
    6. ./docker-lamp/local-docker.sh status: Check if service and docker compose is running.

We are aware that this docker configuration has some problems. Feel free to create any issue here.

API

The following resources are available:

drupalcampspain's People

Contributors

juampynr avatar nuez avatar niteman avatar isholgueras avatar ckrina avatar samuelsolis avatar

Watchers

James Cloos 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.