lcreid / rails-5-jade

Rails 5 with Jekyll and Node on Ubuntu 18.04
MIT License
29 stars 3 forks source link

Start the servers when the box starts #5

Open lcreid opened 8 years ago

lcreid commented 8 years ago

Could do this with a provisioner that always runs.

lcreid commented 8 years ago

Remember that the first time someone starts the box, they don't have anything to start, at least in the case of Rails. And how would you know which server to start? You have to recognize whether what's in the folder is Rails or Jekyll. You also have to find it -- the user might not have put the project at the root of the /vagrant directory. You might have one directory for Rails and another for Jekyll for example. Not as simple as it seems, but still desirable.

One idea might be to document how to add something to the .profile, or the Vagrantfile, to start the relevant tools, in the relevant place.

lcreid commented 5 years ago

Another reason you might not want to start automatically is that some applications can strain the box a bit if you're running tests and the server at the same time. There's a bit of a balancing act that we might want to leave up to the user to configure things they way they want.