ddev

ddev / TYPO3 / .htaccess - redirect all http -> https

一曲冷凌霜 提交于 2021-02-18 19:43:34
问题 I need help pls understanding ddev/apache and redirects T3 site config.yaml base: 'https://sample-project.ddev.site/' ddev config.yaml name: sample-project webserver_type: apache-fpm router_http_port: "80" router_https_port: "443" use_dns_when_possible: true that works fine when calling in safari https://sample-project.ddev.site/ but when calling in safari sample-project.ddev.site it does not work I get an T3 oops so I have inserted in .htaccess (equivalent to my hosting server) RewriteCond %

ddev / TYPO3 / .htaccess - redirect all http -> https

匆匆过客 提交于 2021-02-18 19:42:35
问题 I need help pls understanding ddev/apache and redirects T3 site config.yaml base: 'https://sample-project.ddev.site/' ddev config.yaml name: sample-project webserver_type: apache-fpm router_http_port: "80" router_https_port: "443" use_dns_when_possible: true that works fine when calling in safari https://sample-project.ddev.site/ but when calling in safari sample-project.ddev.site it does not work I get an T3 oops so I have inserted in .htaccess (equivalent to my hosting server) RewriteCond %

Using Docker Compose to expose DDEV web container ports to host machine

落花浮王杯 提交于 2021-02-10 14:47:50
问题 I have configured a DDEV Drupal environment in which I need to run Pattern Lab for my theme. This environment will be used by students of mine who may not be well-versed in installing Node or Node dependencies tools on their local computers (Pattern Lab requires Node). As a workaround, I am setting Pattern Lab to run in the DDEV's web container. The problem I am having is that since Pattern Lab is running in a DDEV container, I can't access it on my host computer. Has anyone done something

How to use a separate node container in your ddev setup?

巧了我就是萌 提交于 2021-02-10 06:19:12
问题 Sometimes you want to use a custom node version in your ddev setup. I will give an example configuration how this can be archived. 回答1: Create a file in .ddev/ folder named docker-compose.node.yaml with the following content: version: '3.6' # recent ddev requires docker-compose file version 3.6 services: node: container_name: ddev-${DDEV_SITENAME}-node image: node:10.6 user: "node" restart: "no" labels: com.ddev.site-name: ${DDEV_SITENAME} com.ddev.platform: ddev com.ddev.app-type: php com

DDEV Integration Zendguard Loader

Deadly 提交于 2021-01-29 08:56:27
问题 I'm using DDEV in an older OXID Esales Project (4.6). Now I have to install the Zendguard Loader. How can I do that? I have to put the .so file into the php direction inside the container and extend the php.ini. I asked earlier about the Ioncube loader and that works fine with DDEV-Local. But I don't know how to integrate the zendguard loeader? Can someone help me? 回答1: Download the Zendguard Loader from their website. (Linux, 64-bit, PHP5.6) Place the tarball in your project's .ddev/web

How can I override ddev's php-fpm.conf or pool.d/www.conf?

无人久伴 提交于 2021-01-29 05:14:42
问题 There is no obvious way to override some php-fpm configuration in DDEV-Local's web container. Although it's easy to provide custom PHP configuration it's not as obvious how one would configure the php-fpm process itself. In my case I want to change the security.limit-extensions value in pool.d/www.conf 回答1: There are two ways to do this. I'll create two separate answers to explain how. The first technique is to create a custom Dockerfile (docs) which edits the www.conf (or any other file).

How can I add and use nvm in a DDEV web container?

江枫思渺然 提交于 2020-06-08 21:14:41
问题 Currently, the DDEV web container does not come with nvm (node version manager). How can I add and use it via the DDEV config.yaml file? 回答1: With the help of @greggles and @heddn on the #ddev Slack channel (on the Drupal Slack workspace), I got it working with the following post-start hook: hooks: post-start: - exec: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash - exec: rm -f ../.nvmrc && export NVM_DIR="$HOME/.nvm" && source "$NVM_DIR/nvm.sh" && nvm

How can I add and use nvm in a DDEV web container?

て烟熏妆下的殇ゞ 提交于 2020-06-08 21:14:14
问题 Currently, the DDEV web container does not come with nvm (node version manager). How can I add and use it via the DDEV config.yaml file? 回答1: With the help of @greggles and @heddn on the #ddev Slack channel (on the Drupal Slack workspace), I got it working with the following post-start hook: hooks: post-start: - exec: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash - exec: rm -f ../.nvmrc && export NVM_DIR="$HOME/.nvm" && source "$NVM_DIR/nvm.sh" && nvm

How can I install a pecl extension like mcrypt in DDEV-Local's web container?

会有一股神秘感。 提交于 2020-04-16 02:27:47
问题 In PHP 7.2 and higher the mcrypt extension is no longer available, but my project depends on it. I know that the project shouldn't be using something as ancient as mcrypt, but I don't have any say in this. I know that mcrypt was removed from PHP7.2+ but is still in pecl. What can I do for this project to support php-mcrypt in 7.2 and higher? 回答1: DDEV-Local supports custom Dockerfiles, so you can add almost anything you want to the web container. This .ddev/web-build/Dockerfile will install

ddev exec: command not found (.bash_aliases)

南楼画角 提交于 2020-03-05 00:25:04
问题 In a local ddev instance, I have added a few aliases and functions to .ddev/homeadditions/bash_aliases . For example: alias ll="ls -lhA" While ddev ssh and then ll will work, ddev exec ll returns bash: ll: command not found Failed to execute command ll: exit status 127 Why? 回答1: It's really about how bash works, not about how ddev works. The .bashrc (and thus .bash_aliases, which gets loaded by .bashrc) is only loaded by interactive shells (contexts like ddev ssh ). Here'a an Stack Overflow