Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

PLAT-316 Enable dev mode phing command #336

Merged
merged 4 commits into from
Jun 28, 2016

Conversation

pvhee
Copy link
Contributor

@pvhee pvhee commented Jun 23, 2016

Fixes https://jira.comicrelief.com/browse/PLAT-316

Changes proposed in this pull request

  • dev-mode:enable target that is run as part of db target, does some dev work
  • In RND, this is extended further and handles things such as enabling and configuring stage_file_proxy (see https://github.com/comicrelief/rnd17/pull/57)

@@ -182,4 +184,8 @@
<target name="info:code:cbf" description="Fix some quality errors of the PHP code.">
<exec logoutput="true" command="${c.home}bin/phpcbf ${cs.standard} ${app.code}" />
</target>
<!-- Dev target to enable site in dev mode -->
<target name="enable-dev-mode" description="Enable developer mode for this site">
<exec logoutput="true" passthru="true" command="${drush.bin} en devel -y"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this is about stage_file_proxy also in the Dev Days I discovered webprofiler and I just love it! WE MUST HAVE IT!!!

@bimsonz
Copy link
Contributor

bimsonz commented Jun 28, 2016

Can we call it dev-mode:enable ?

@@ -9,6 +9,7 @@
<property name="cs.standard" override="true" value="--standard=Drupal"/>
<property name="cs.ext" override="true" value="--extensions=php,module,inc,install,test,profile,theme"/>
<property name="db.querystring" override="true" value="mysql://root:@localhost/campaign"/>
<property name="app.dev_modules" value="webprofiler kint"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Saphyel I think we should not enable webprofiler by default when you get a local db and enable dev mode. Could you split this up maybe, like app.dev_modules and app.dev_perf_modules, or whatever works better for you.

@pvhee
Copy link
Contributor Author

pvhee commented Jun 28, 2016

@bimsonz I've changed the name of the command as per your suggestion

@bimsonz bimsonz merged commit 263a27c into develop Jun 28, 2016
@bimsonz bimsonz deleted the feature/PLAT-316_enable_dev_mode branch June 28, 2016 16:22
@pvhee pvhee mentioned this pull request Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants