On Thursday, September 28, 2017 at 3:22:08 PM UTC-7, jim kaubisch wrote: > > Hi, > > I want/need to install web2py on macOS Server. > The instructions below seem pretty clear. However, they were written 6+ > years ago and macOS , macOS Server and web2py all have evolved since then. > > Before putting effort into trying the instructions, I'd greatly appreciate > knowing - Does anyone have recent experience installing web2py on macOS > Server (my current environment is Sierra, Server 5.3 and, at this point, > web2py 2.14.6). > > Thanks, > Jim > > Does this thread help? It's evidence of recent MacOS usage. <URL:https://groups.google.com/d/topic/web2py/R7ie7_neg7E/discussion>
/dps > On Wednesday, February 2, 2011 at 2:06:03 AM UTC-8, rif wrote: >> >> I made web2py autostart on a mac osx server conforming to tutorial >> <http://docstore.mik.ua/orelly/unix3/mac/ch02_02.htm>. >> >> Install web2py in /Applications folder. >> The StartupParameters.plist must be placed in the /Library/StartupItems/ >> (if you don't have one already). >> Then create a directory named web2py in the same location >> (/Library/StartupItems/) and place the web2py shell file in it. >> Make web2py file executable like this: chmod >> +x /Library/StartupItems/web2py/web2py >> >> You can use the following command now: >> >> sudo /Library/StartupItems/web2py/web2py start >> sudo /Library/StartupItems/web2py/web2py restart >> sudo /Library/StartupItems/web2py/web2py stop >> >> The autostart feature is not tested as I created them on a production >> server and I cannot restart it. >> >> StartupParameters.plist: >> >> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist SYSTEM >> "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist >> version="0.9"> <dict> <key>Description</key> <string>web2py</string> >> <key>Provides</key> <array> <string>web2py</string> </array> >> <key>Requires</key> <array> <string>Network</string> </array> >> <key>OrderPreference</key> <string>Late</string> </dict> </plist> >> >> web2py: >> #!/bin/sh . /etc/rc.common StartService( ) { ConsoleMessage "Starting >> web2py" /Applications/web2py.app/Contents/MacOS/web2py -a "<recycle>" -i >> 0.0.0.0 -p 8000 -d /var/run/web2py.pid & } StopService( ) { ConsoleMessage >> "Stopping web2py" kill `cat /var/run/web2py.pid` } RestartService( ) { >> ConsoleMessage "Restarting web2py" StopService StartService } RunService >> "$1" >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

