GithubHelp home page GithubHelp logo

Comments (9)

zanematthew avatar zanematthew commented on July 28, 2024 1

One idea might be to have a command that generates the web/ contents dynamically based on project; just quickly thinking here;

user enters a command,
command prompts user for archive of web root (be it wordpress core.zip)
process unpacks the contents (or downloads from remote URL)
prompts user for nginx config
etc...
and can dynamically build the contents of the web root, without having the source files in the repo.

from docker-nginx-php-mysql.

al-mighty avatar al-mighty commented on July 28, 2024 1

@drm-code
работает с hostname mysql
try

<?php try { $dsn = 'mysql:host=mysql;dbname=broadcastdemo;charset=utf8;port=3306'; $pdo = new PDO($dsn, 'root', 'root'); foreach($pdo->query('SELECT * from wpkv_users') as $row) { print_r($row); } var_dump(json_encode($pdo)); } catch (PDOException $e) { echo $e->getMessage(); } ?>

from docker-nginx-php-mysql.

nanoninja avatar nanoninja commented on July 28, 2024

That's a good idea to automated Wordpress installation.
Send us a link when you got the project done.

from docker-nginx-php-mysql.

zanematthew avatar zanematthew commented on July 28, 2024

@senrabdet @nanoninja wouldn't this be outside of the scope of the project? Adding WordPress is as easy as adding your WP code to web/ directory.

I'm currently using this with a Laravel project, and wouldn't expect this to be specific to a particular open source platform.

@senrabdet also its WordPress

from docker-nginx-php-mysql.

nanoninja avatar nanoninja commented on July 28, 2024

@senrabdet, @zanematthew,

No indeed I do not think add it to this project either but I realize that what often changes is the organization depending on the type of project as (Laravel, Symfony, Wordpress).

I was thinking about developing a CLI tool based on project creation and that could be adapted to different types of applications more easily with less configuration. (Like Yeoman)

I'll see that when I have some time.

from docker-nginx-php-mysql.

nanoninja avatar nanoninja commented on July 28, 2024

@zanematthew,

Yes I think it's a good idea for the future. This will make it more flexible and less dependent on the particular application type.

it would be a good evolution to put in place.

from docker-nginx-php-mysql.

drm-code avatar drm-code commented on July 28, 2024

captura de pantalla de 2018-06-12 09-48-14

I'm getting this error when I try to install a wordpress.
I copied wordpress code to /web directory, installation starts well but when I configure the mysql data it fails, it seems like mysql is not running but phpmyadmin works like charm.

Any ideas??

I tried localhost localhost:8989 localhost:3306

from docker-nginx-php-mysql.

drm-code avatar drm-code commented on July 28, 2024

After multiple tries, I did docker inspect mysql which returns a huge json, then I looked for NetworkSettings.Networks.docker-nginx-php-mysql_default.IPAddress key and set that IP in wordpress settings page, voala!!! it works try that if you have the same issue.

from docker-nginx-php-mysql.

ypinedaVS avatar ypinedaVS commented on July 28, 2024

Hi @devVyacheslav thanks for your answer, what I noticed is that everytime you run the container which wrappers the wordpress mysql IP changes not randomly but could change for example 198.128.0.3 to 198.128.0.4 and maybe 198.128.0.5 and it keeps some kind of pattern, what I just did everytime is test an IP from a set of them :)

from docker-nginx-php-mysql.

Related Issues (20)

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.