0

Hi After some issues with Vagrant I'm trying out a switch to Docker and using Sail but struggling with quite a few concepts that I can't seem to find the answers to (or get my head around).

I have a working project that I've been building on a local machine via Homestead and have it in a bitbucket repository. I can make changes to that project and it works on a windows machine and can access in the browser using the URL for the app.

I've now succesfully installed docker, ubuntu on windows and can "sail up" from within the project by navigating within ubuntu to the local files - from here I can "sail up" and browse to the app using http:/localhost. I can access the database via TablePlus and the app works - but very very slowly.

Search results suggest it's slow because I'm accessing the app via the windows directory (currently files sit on drive E) which then leads to some questions:

Should I place my project files within the home directory within ubuntu and run sail from there? If so is there an easy way to copy the directory from the E drive to the home directory or do I simply pull the repository from bitbucket from within ubuntu? Does this mean each time I shut down the machine I will lose my app files? Meaning I should then ensure I have pushed any changes to the bitbucket repository? As I understand it ubuntu on windows won't have php or composer installed as default - so do I need to install these first before even thinking about moving my project over? Are there any recommended guides/videos that would help with a focus on Laravel and Docker (currently working my way through the ones on this site) It's a strange concept - I got the hang of Homestead and was comfortable with the syncing concept but completely lost on docker - despite getting an app working but the concepts are lost on me at the moment and the Laravel set up guide assumes I have a grasp of them.

Thank you :)

Ray
  • 3,018
  • 8
  • 50
  • 91

0 Answers0