How To Deploy A Bedrock Site with Trellis | WordPress Workflow

Поділитися
Вставка
  • Опубліковано 30 лип 2024
  • In this video, I go over how to create a local site with Trellis and then we jump over to deploying that same site to a Digital Ocean droplet.
    Vagrant - www.vagrantup.com/downloads.html
    Virtualbox - www.virtualbox.org/wiki/Downl...
    Composer - getcomposer.org/doc/00-intro....
    💖 Become a Patron to show support & get perks!
    / wpcasts
    Sign up for the newsletter. Free course coming in 2020:
    wpcasts.tv
    *SOCIAL*
    Twitter: / alexanderbyoung
    Instagram: / the_alex_young
    Facebook: / wpcasts.tv
    #Bedrock #Trellis #WordPress
  • Наука та технологія

КОМЕНТАРІ • 71

  • @WPCasts
    @WPCasts  4 роки тому +2

    Thanks for watching! I hope you learned something. If you want to chat, follow me on Twitter: twitter.com/AlexanderBYoung

  • @TomaszTomczuk
    @TomaszTomczuk 3 роки тому +6

    Hi, it would be great if you could continue on this topic. For example, show how to deploy plugins from private repository and also create staging env

  • @deepakkalra8132
    @deepakkalra8132 4 роки тому

    Your videos are awesome! thank you putting these together.

  • @nicolaskeith8945
    @nicolaskeith8945 3 місяці тому +2

    Hey Alex, can we get more Roots videos?

  • @SimonBouchard82
    @SimonBouchard82 4 роки тому +6

    Thank you for your time and efforts. I tried to figure it out a few month ago and it was over my head. Now I got it because of you. Cheers!

  • @dardaiin
    @dardaiin 3 роки тому

    Dude your awesome! Helped me out a bunch! Subscribed 😃 👑

  • @jasenmichael
    @jasenmichael 3 роки тому +1

    Dude this is soo good! you are a very good teacher.. got me liking wp again 🤪 Thank you for taking the time to really cover this 🙌

  • @TJKhara
    @TJKhara 3 роки тому

    Thank you so much for this video. I've learned so much from it. I couldn't get it the first time, but spent some time fixing some of the issues due to changes in things like composer version updates and other minor things and today manager to get dev prod parity in wordpress :)

  • @bobbydharma
    @bobbydharma 4 роки тому +3

    Brilliant little tutorial. Much easier to follow than trellis docs !!!

  • @asibikbal8490
    @asibikbal8490 4 роки тому +1

    we really appreciate your effort...please do more roots stuff..like bedrock, sage and trellis.. take love

  • @jaykudie
    @jaykudie 3 роки тому

    Thank you for making this I've referenced this video many times for help

  • @withmikes
    @withmikes 4 роки тому +6

    This is fantastic! Best trellis practical video: not just a demo, but something somewhat realistic! I would love to see:
    1. plugin deployments for things not in the repository
    2. adding another site to the same prodution droplet
    3. How to deploy changes to nginx config. (or other server config). If possible, how to have those nginx changes depoyed onto to prod.

  • @developwithus2662
    @developwithus2662 3 роки тому

    Beautiful! I signed up for Patreon after this walkthrough.

    • @WPCasts
      @WPCasts  3 роки тому

      Welcome aboard!

  • @oscarmejia8306
    @oscarmejia8306 3 роки тому

    Thanks so much. This is so essential.

  • @Cronofear
    @Cronofear 3 роки тому

    Well this was complicated to setup in Windows (ansible needed several workarounds). But i managed to make it work. THANK YOU!

  • @benmartelify
    @benmartelify 5 місяців тому

    Very helpful, even now! I wish there was an updated version for the workflow which seems to have changed jus a bit but I'm still so so happy his exists.

  • @truthseeker803
    @truthseeker803 17 днів тому

    Great tutorial. Thanks a lot bro

  • @SplitterAlex1990
    @SplitterAlex1990 4 роки тому

    Awesome Thanks!

  • @khostevan
    @khostevan 3 роки тому +1

    Thank you for this helpful tutorial! I can't wait to implement this in my workflow. But what does your local workflow look like with Trellis? Do you have to manually deploy every time you change something? That hotload mechanism in "local by flywheel" was very convenient, but not working with Trellis.

  • @billaddison82
    @billaddison82 4 роки тому

    I think you can trigger that deploy script automatically on push to a specific deploy or production branch if you like too.

  • @da9079
    @da9079 3 роки тому

    Awesome Thanks.

  • @ontoseek
    @ontoseek 3 роки тому

    Thanks a lot!

  • @EricThomson
    @EricThomson 2 роки тому

    Very useful. Now that you have one site, what are the steps to add another site? I assume you can continue to add sites, just upgrading the droplet to maintain performance. But if you want to use another droplet I assume you would need to start over. Thanks Alex

  • @guillaumedeschamps4566
    @guillaumedeschamps4566 Місяць тому

    Thank you very much for this great video.
    Unfortunately, the "vagrant up" is not completed and i don't know how to fix it.

  • @jtharpe226
    @jtharpe226 4 роки тому +1

    When using Bedrock if your are developing plugins can you still use the Wordpress functions like plugin_dir_path() even though the paths are not default Wordpress paths?

  • @ezswan
    @ezswan 4 роки тому

    so when you make blog posts on wp backend, plus add images and such, will that be canceled out when you upload from git?

  • @frankie_goestohollywood
    @frankie_goestohollywood 3 роки тому

    Thank you !!!!! :-)

    • @WPCasts
      @WPCasts  3 роки тому +1

      You're welcome!

  • @agakorit
    @agakorit 3 роки тому

    How do you handle Database migrations? What mac OS are you using? Because Virtualbox 6.1 is not supported for Big Sur. Tanks for the video

  • @melchizedek_danelian
    @melchizedek_danelian 3 роки тому

    Awesome video so far but having a torrid time with vagrant up :
    * The host path of the shared folder is not supported from WSL. Host
    path of the shared folder must be located on a file system with
    DrvFs type
    Any ideas?

  • @matthewsmith9272
    @matthewsmith9272 4 роки тому +1

    This is awesome, been looking for this! would it be possible to replicate with cpanel?

  • @davidmansaray
    @davidmansaray 4 роки тому +3

    This was great. Thank you! How does the database fit into all of this? How do we make sure they are in sync? At the moment I use WP Migrate DB. A common situation is working on sites that have content added daily. I work on my local install and often make changes to the database. By the time my feature is complete the databases are out of sync. Currently the process I use for syncing the two out of sync database is kinda clunky. Does Trellis have a solution for this? Thank in advance! Great content!

    • @bobbydharma
      @bobbydharma 4 роки тому

      I don't think so. You need to use WP DB sync or do it manually

  • @ezswan
    @ezswan 4 роки тому

    is it possible to do something like this with cyberpanel?

  • @ezswan
    @ezswan 4 роки тому

    how would i merge a wordpress website i already have with something like this?

  • @BobDoe_69
    @BobDoe_69 2 роки тому

    so complicated, unless its a really high value project I wouldnt bother personally honestly

  • @berrybush6545
    @berrybush6545 Рік тому

    How does Trellis deal with database synchronization?

  • @ezswan
    @ezswan 4 роки тому

    im confused as to where the site folder goes in server

  • @gregerl01
    @gregerl01 3 роки тому

    trellis / group_vars / production / wordpress_sites.yml, if I set ssl to true, I get an error "Error: the required `letsencrypt_contact_emails` variable is not defined or invalid." after running $ansible-playbook server.yml -e env=production. while provisioning a server. It doesn't error, if I set SSL to false. Any ideas??

  • @maroluke7705
    @maroluke7705 4 роки тому

    Thank you for sharing your knowlegde.
    My question is, why i can't run ansible-vault encrypt command.
    It returns this: -bash: ansible-vault: command not found
    Any idea?

    • @maroluke7705
      @maroluke7705 4 роки тому +1

      I got it. I had to downgrade ansible version due to uncompatibility with newer osx version.
      Last working ansible version is 2.9.6
      Downgrade with PIP: $pip install ansible==2.9.6.0
      Cheers!

  • @clemensmoosbrugger3744
    @clemensmoosbrugger3744 4 роки тому

    Great video :), but I'm facing some problems...
    When i try to run the command "ansible-playbook server.yml -e env=production" an error accures "{"msg": "The field 'environment' has an invalid value, which includes an undefined variable. The error was: 'ssh_args_default' is undefined

    The error appears to be in '/mnt/c/Coding/Zewas/Sennerei_new/trellis/roles/connection/tasks/main.yml': line 18, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:


    - name: Check whether Ansible can connect as {{ dynamic_user | default(true) | ternary('root', web_user) }}
    ^ here
    We could be wrong, but this one looks like it might be an issue with
    missing quotes. Always quote template expression brackets when they
    start a value. For instance:

    with_items:
    - {{ foo }}

    Should be written as:

    with_items:
    - \"{{ foo }}\"
    "}", can someone help me out?

  • @nmarketti
    @nmarketti 3 роки тому

    Having an issue just getting vagrant up. Keep throwing 'playbook' does not exist on the guest. Thoughts?

    • @dardaiin
      @dardaiin 3 роки тому

      Hi! I had this issue when installing Vagrant och VirtualBox using Brew on a Mac. When I installed it using their own installer from their website the issue disappeared. It could maybe something with Brew.. or with what version of Vagrant you are running.

  • @klob1100
    @klob1100 Рік тому

    will this work for Azure App service?

  • @musthavechannel5262
    @musthavechannel5262 3 роки тому

    Hi, thank you for this GREAT guide. I has helped me a lot in my first trellis/bedrock setup.
    I have a question though. When I provision my staging server, the process breaks at installing maria-db. The error says that it is broken and it has unmet dependencies. My ansible, droplet ubuntu, vagrant versions are according to the specs noted in trellis documentation.
    Thanks.

    • @musthavechannel5262
      @musthavechannel5262 3 роки тому

      To follow up on this, the problem was caused the by the way the droplet was set up. Trellis requires a blank ubuntu droplet but I had a "wordpress" droplet. Provisioning a blank Ubuntu droplet went just fine.
      Thanks for reading.
      Again, HUGE appreciation for your video. It has saved me so much time.

    • @stanleyogbumuo1096
      @stanleyogbumuo1096 2 роки тому

      @@musthavechannel5262 i'm having difficulties following, is there a chance you could help me set up please?

    • @musthavechannel5262
      @musthavechannel5262 2 роки тому

      @@stanleyogbumuo1096 Hi there, I would have loved to help but it has been a while and I do not remember much of it. This was a one off project where some other marketing company had left the project unfinished. I do not work with wordpress regularly. Sorry for not being able to help :(

  • @danielf535
    @danielf535 4 роки тому +1

    Is there a benefit to using Trellis over Docker? Both seem to solve the same problem.

    • @Quynn-Oneal
      @Quynn-Oneal 3 роки тому

      I believe trellis consumes more sources than docker

  • @filipchrapek
    @filipchrapek 4 роки тому +2

    Hi man, really appreciate your tuts - always wanted to up my WP game. Unfortunately I'm not able to run 'vagrant up' successfully. I get this error:
    A bindfs command failed to run!
    Command (runned via sudo):
    /usr/bin/bindfs --force-user=vagrant --force-group=www-data --perms=u=rwX:g=rD:o=rD -o nonempty /vagrant-nfs-trellis.local /srv/www/trellis.local/current
    Standard output:
    Error output:
    Could not open source directory
    Couldn't find a solution online. Any idea why is this happening?

    • @danielf535
      @danielf535 4 роки тому +2

      Possible solutions:
      1. Try a different directory.
      2. Check the permissions for the folder.
      3. Check that the user you are using has sufficient access to the directory.
      4. Check that the directory exists.

  • @bster13
    @bster13 4 роки тому +1

    You'll probably blow your brains out with boredom, but would you be interested in making a video about the learning steps needs to become a true WP developer (not a designer)? Not the beginner point n click tutorials on how to create a basic WP site, but should we be learning HTML, then CSS, then JS, then PHP, then maybe MySQL, and perhaps server mgmt like GoDaddy or AWS? Or should we start with learning WordPress Dashboard Management and then hack stuff together by changing bits of code? I work better with real world examples as opposed to textbooks but will go that route if recommended. Many thanks! #subbed

  • @CarterStandish
    @CarterStandish 9 місяців тому

    Is there a solution for apple m1 users since we are unable to utilize virtual box? Would vmware be a silimar approach?

    • @Alexonscreen
      @Alexonscreen 3 місяці тому

      Only with Lima - the free way or with Parallels Pro - unfortunately the only way to get Vagrant working on Mac silicon.

  • @TheRustyAcoustic
    @TheRustyAcoustic 4 роки тому

    Awesome video, you're such a good teacher. I really hope you can help for a minute. At 24:25 you run the ansible-playbook server.yml command
    I have been trying for six hours to get the SSH to return with anything other than "Permission Denied".
    I have tried new SSH keys, I have tried changing the admin name to root, admin, core.
    I can't even ping the root@123.123.123.3 (obviously my IP address for the droplet) without getting permission denied.
    I'm running on Vagrant on a Windows machine... Maybe I haven't assigned my ssh private key inside the vm?

    • @TheRustyAcoustic
      @TheRustyAcoustic 4 роки тому

      Outside of the vagrant ssh, I can access root@, so it's obviously an issue inside of vagrant - do you have any advice?

  • @TJKhara
    @TJKhara 3 роки тому

    @25:53 Deploying the actual site starts here

  • @sunnyshingala
    @sunnyshingala 2 роки тому

    Virtual Box is not supported in mac

  • @vinceweyn9374
    @vinceweyn9374 4 роки тому

    Do you suggest using Trellis over Local by Flywheel?

    • @WPCasts
      @WPCasts  4 роки тому +2

      I personally use Flywheel for experiments and tutorials. For freelancing I would use Trellis

    • @vinceweyn9374
      @vinceweyn9374 4 роки тому

      @@WPCasts thanks :)

    • @vinceweyn9374
      @vinceweyn9374 4 роки тому

      great videos btw!