Automatically Deploy Docker + Wordpress To Digitalocean With Github Actions - CI&CD

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 22

  • @huntercampbell7890
    @huntercampbell7890 3 года назад +5

    I never comment... That was amazing! Thank you!

  • @lexerquine3008
    @lexerquine3008 2 года назад

    a great followup to on of the greatest teachers online, thanks my friend for your video.

  • @pedrocontrerasavendano8578
    @pedrocontrerasavendano8578 2 года назад

    Really good video. It will be nice to make a new version since there is a few changes but it stil relevant. Thanks

  • @davidtaylor6124
    @davidtaylor6124 3 года назад +3

    A lot of good info there. How does this setup handle changes to the WP database, such as changes in the wp_posts table? Where I work all the pages are stored in there rather than as .php files on the filesystem.

  • @khal-elbangcola8167
    @khal-elbangcola8167 3 года назад

    Thank you Tech Team! God bless!

  • @bankai7654
    @bankai7654 Год назад

    thank you very match! very usefull example.

  • @fouarges
    @fouarges 3 года назад

    Excellent guide indeed! Would we need to 'clean-up' or prune the old docker images on the server?

  • @valentinussofa4135
    @valentinussofa4135 2 года назад

    Subscribe. Very recommended for my new project. Thanks a lot Sir.

  • @cerruz83
    @cerruz83 3 года назад +1

    Hi. Thank you very much for this video, you inspire me to give a try.
    I'm not sure you'll have time to answer my question, I'm going to try.
    I had a problem at the Minute 15:21, using environment variable for the port.
    It works when I set PORT=8000 but it doesn't when I set the port in the file .env to different ports like PORT=1234 or PORT=8181.
    I edited the docker-compose.yml ad added in the env file variables for mql user and password and they work.
    I use wsl2 (debian) and docker desktop for windows, I fear there is limitation for the ports I can use.
    If you have any suggestion I would appreciate, otherwise, thank you again. _||_

  • @jamesauble8091
    @jamesauble8091 Год назад

    Do the new Docker images not include docker compose? I had to install it manually on Docker Ubuntu 22.04

  • @valmanway
    @valmanway 3 года назад +1

    Hey dude, excellent guide. 👍 Couple questions:
    1. I setup environment variables, with different credentials and it appears that anything other than "wordpress" as the parameters throws a "Cannot connect to database" error. Can I not change these?
    2. I created a `test.php` file, but attempts at accessing it result in redirecting to `wp-config.php` file. Why can't I access my test.php?

    • @TheTechTeam
      @TheTechTeam  3 года назад

      Hi Slug, sorry for the late reply. glad you found the tutorial well.
      1. Wordpress is the name of the service and not the database credentials. Did you manage to solve your credential issue.
      2. I know WP is funny sometimes with redirects if credentials or tables have capital letters.
      If you have any more issues ping me a message and I'll see if I can jump on to help you.

    • @kieran4338
      @kieran4338 3 года назад +2

      I had the same issue as you with "Cannot connect to database"
      What fixed it for me was specifying the name of the Database that you create in the DB environment in the Wordpress environment
      E.g if your MYSQL_DATABASE is called wp_db
      Then add WORDPRESS_DB_NAME: wp_db to the wordpress environment

    • @khal-elbangcola8167
      @khal-elbangcola8167 3 года назад

      @@kieran4338 Thank you for commenting this

    • @endzeitreporterfurjesus6218
      @endzeitreporterfurjesus6218 2 года назад

      @@kieran4338
      Do you have a Ready to Start Github from the Docker Setup? I would like to Firok a good Git Project so that i can leatn easyer how to commit Docker and Wordpress on Digital Ozean.

  • @alpachino468
    @alpachino468 2 года назад

    Here's a quick question I'm hoping you can answer:
    In your DIGITALOCEAN_DEPLOY.yml file, you've added actions/checkout@main as a step, whereas in other tutorials, I've seen many people use actions/checkout@v2 - any idea what the difference is?

    • @theosandell3972
      @theosandell3972 2 года назад +1

      @v2 is a production release, more stable. @main is continually updated and can contain bugs, basically a beta!

  • @GeekyMon2
    @GeekyMon2 3 года назад

    This is great for continuous integration and deployment of containers to a host. However I want to understand how I could continuous deploy using container registry rather than the source code. In production I want to have a container artifact tagged with a version that I can deploy rather than deploying the code directly. Any ideas?

  • @jenifer5463
    @jenifer5463 2 года назад

    Hello Sir, is it possible to setup docker compose github action with heroku.. ❤️👍

  • @jsdevtom
    @jsdevtom 3 года назад

    Running docker-compose causes www-data to own all the files in the project's directory.
    (drwxr-xr-x 4 www-data www-data 4.0K Jun 22 07:01 wp-content)
    This means that when the checkout is done in github, the error is thrown "Error: EACCES: permission denied, unlink '/.env'. I have tried adding the user to www-data group to no avail. Do you know how to remedy this? Thank you for you tutorial!

  • @bryonczoch8
    @bryonczoch8 2 года назад

    kinda blurry