A new drush command to generate apache VirtualHost configurations

mmartinov's picture

Hello all,

Just wanted to let you know that I've pushed a new drush command to this github repository.

What it does is generating a VirtualHost section for the Apache configuration, which allows you to easily add new virtual hosts to your system.

It saves me some time, hope you'll find it useful too.

Thanks for your attention, looking forward for comments and suggestions.

Comments

There are other modules that

There are other modules that do similar things; see http://drupal.org/node/1088810. I also have a bash script that is similar in https://github.com/greg-1-anderson/utiliscripts. It handles ssl setup, etc.; you might want to pull some of those features in to your drush command.

Yes, I totally agree that a

mmartinov's picture

Yes, I totally agree that a shell script is the right tool for this job. I was just looking for an excuse to try creating drush commands ;-)

Thanks for the links, I'm probably going to add some of the mentioned features and I've got some other ideas too.

I'm not saying that a shell

I'm not saying that a shell script is better than a drush command, really; a shell script is sufficient for the job, but that does not make a drush command worse. One good reason to use a drush command is if you want to integrate with drush aliases; I did this when I converted pushkey (now in drush_extras) into a drush command from a bash script. Do take a look at provision and drubuntu; they might do what you want. If not, enhancing your drush command is a fine way to go.

densite


A considerable problem in server administration is having clients.

drush

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week