Giter Club home page Giter Club logo

Comments (3)

kerns avatar kerns commented on September 1, 2024

Sorry. @pgib ...just wanted to clarify a few things. One is that I did of course boost my max search depth, I think it is set to 5.

Two, and this is just to be clear about my wishes –  "the dream" is to be able to create a folder at some location, say... ~/Sites/projects/my-site/public ...and then run . virtualhost.sh my-site and have the script intelligently set the web root set to /Users/dvk/Sites/projects/my-site/public

And it seems like this dream used to be a reality....or what?

from virtualhost.sh.

pgib avatar pgib commented on September 1, 2024

This seems to work for me:

$ mkdir -p ~/Sites/my-site/public
$ virtualhost.sh my-site
virtualhost.sh requires super-user privileges to work.
Enter your password to continue...
Checking for updates... none found
Create http://my-site:80/? [Y/n]: y
+ Looking in /Users/patrick/Sites for an existing document root to use...
  - Use /Users/patrick/Sites/my-site as the virtualhost folder? [Y/n] 
  - Found a public folder suggesting a Rails/Rack project. Use as DocumentRoot? [y/N] y
+ Creating virtualhost file... done
+ Flushing cache... done
+ Restarting Apache... done

http://my-site:80/ is setup and ready for use.

Launching virtualhost... done

And then my virtual host file has:

# Created Tue Aug 20 12:44:28 PDT 2013
<VirtualHost *:80>
  DocumentRoot "/Users/patrick/Sites/my-site/public"
  ServerName my-site
  #ServerAlias your.alias.here

  ScriptAlias /cgi-bin "/Users/patrick/Sites/my-site/public/cgi-bin"

  <Directory "/Users/patrick/Sites/my-site/public">
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>

  #CustomLog "" combined
  #ErrorLog ""

</VirtualHost>

from virtualhost.sh.

pgib avatar pgib commented on September 1, 2024

Oh, I see: in BATCH_MODE, this is not working.

from virtualhost.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.