Skip to content

Commit

Permalink
Update vagrant.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
MWDelaney authored Aug 28, 2024
1 parent 95933ca commit d4c3fc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/trellis/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ def mount_options(mount_type, dmode:, fmode:)
end
end

def post_up_message
def post_up_message(trellis_config)
msg = 'Your Trellis Vagrant box is ready to use!'
msg << "\n* Composer and WP-CLI commands need to be run on the virtual machine"
msg << "\n for any post-provision modifications."
msg << "\n* You can SSH into the machine with `vagrant ssh`."
msg << "\n* Then navigate to your WordPress sites at `/srv/www`"
msg << "\n or to your Trellis files at `#{ANSIBLE_PATH_ON_VM}`."

trellis_config = Trellis::Config.new(root_path: ANSIBLE_PATH)
if trellis_config.wordpress_sites.any?
msg << "\n\n\e[35m🚀 Development URLs: \e[0m"
trellis_config.wordpress_sites.each do |site_name, site|
Expand All @@ -90,7 +89,7 @@ def post_up_message
msg << "\n
🌱 \e[37mName:\e[33m #{site_name}\e[0m
├── 🔗 \e[37mURL:\e[33m #{site_url}\e[0m
├── 🛠️ \e[37mAdmin:\e[33m #{site_url}/wp-admin\e[0m
├── 🛠️ \e[37mAdmin:\e[33m #{site_url}/wp-admin\e[0m
└── 📩 \e[37mMailpit:\e[33m #{site_url}:8025\e[0m
"
end
Expand Down

0 comments on commit d4c3fc6

Please sign in to comment.