Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBlaize Pennington
13,879 PointsHow do I open sublime while on the Vagrant server?
I am using ubuntu 14.04 and when I type subl in my terminal it works. However when I'm on the Vagrant server and type it, the command isn't recognized. Is there a way to pull up the laravel files in Sublime?
3 Answers
Vladimir Dumitraskovic
24,195 PointsYou can't use Sublime inside Vagrant machine :(
But you can access project files from host machine (your Ubuntu 14.04). By default everything in folder where vagrant is invoked is shared in Vagrant server. Just try cd /vagrant . Also you can share custom folder to your machine by modifying Vagrantfile.
Hope that cleared things a bit.
Vladimir Dumitraskovic
24,195 PointsOn Vagrant you can use vagrant push, but I'm not sure that solves your problem completely. I suggest you can always use github + ftploy :) Or grunt + grunt-ftpush :) If you need more help, send me email. I would gladly help.
Jack McDowell
37,797 PointsBlaize Pennington or anyone else having this question. You can use Win Sshfs to mount your linux partition on Windows and then open Sublime locally on your client and open that folder to work in. It really is a lot easier to than pushing updates to your server constantly or using a CLI text editor, although if you do want to go that route I would suggest the Nice Editor, which is really nice (apt-get install ne).
Blaize Pennington
13,879 PointsBlaize Pennington
13,879 PointsThanks. I was hoping there was a way since I have a website on a linux server that I would like to be able to access the files through sublime (without having to go through the sftp.)