- Clone this repository.
- Run 'composer install' in the document root.
- Copy web/sites/default/default.settings.local.php into web/sites/default/settings.local.php.
- Open web/sites/default/settings.local.php and adjust it to your local environment needs. Make sure that you create the database.
- Download a database dump from Jenkins (ask the maintainers for the URL). Alternatively, jump to the next section to install a sample database.
- 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
- Open the homepage as administrator with
drush uli
.
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()
Run git checkout master && git pull
. Then repeat steps 5th onwards from the above section.
- Go to web/themes/dcamp_base_theme
- Run 'npm install' (you might need to install node/npm first)
- Install LiveReload for chrome (https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en)
- Run 'gulp' in the terminal
- Activate LiveReload in chrome
- Happy styling!
We based our local environment in the[https://github.com/keopx/docker-lamp](keopx's Docker-lamp).
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
Everything is configured to setup the local environment. Just follow this steps:
- Host domain is set as
dc2017.local
, so add to your hosts files127.0.0.1 dc2017.local
- There is a helper script, in
docker-lamp/local-docker.sh
. With this script you are able to:./docker-lamp/local-docker.sh start
: Start services./docker-lamp/local-docker.sh stop
: Stop services./docker-lamp/local-docker.sh restart
: Restart services./docker-lamp/local-docker.sh goto
: Get into ssh session on web_1 to execute composer, drush,..../docker-lamp/local-docker.sh gotoroot
: Get into ssh session in web_1 as root./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.
The following resources are available:
- Pages: https://2017.drupalcamp.es/jsonapi/node/page
- Sponsors: https://2017.drupalcamp.es/jsonapi/node/sponsor
- Speakers: https://2017.drupalcamp.es/jsonapi/node/speaker
- Proposed Sessions: https://2017.drupalcamp.es/sessions/proposed?_format=json
- Selected Sessions: https://2017.drupalcamp.es/sessions/selected?_format=json
- Session detail: https://2017.drupalcamp.es/sessions/vue-meets-drupal-miguelangcaro?_format=json
- Sponsors: https://2017.drupalcamp.es/sponsors/list
- Attendees: https://2017.drupalcamp.es/attendees/list?_format=json