Making mongrel_rails_persist work with Macports

I have just installed Ruby, Rails and some other packages that I needed using macports.
Unfortunately it seems that the script provided by Apple to make a mongrel service persistent across restarts only work with the factory installed Ruby and Rails.
I have tried to change the path at the top of the scripts mongrelrailspersist and mongrel_rails etc but it seems that there are a lot of dependencies involved like ruby-cocoa which macport installation failed on me.
Can anyone provide info on how to get the mongrelrailspersist to work with macports installed Ruby, Rails and mongrel or how to configure the apache config file etc directly so that the mongrel server will start automatically?

just realised that the previous solution is not very good as it breaks the mongrelrailspersist restart.... command.
A better solution I found is to
1) install dnssd gem using macports
2) change the script header in /usr/bin/mongrelrailsserver and /usr/bin/mongrel_rails from
#!/usr/bin/ruby or #!/System/Library...
to
#!/opt/local/bin/ruby
or whichever directory that you installed the macports ruby in.
The original Apple's version of mongrelrailspersist should be used.
Remove the hacked version of mongrelrailspersist if you did the previous hack.

Similar Messages

  • I am having trouble making TM work with my new iMac.

    I'm having trouble making TM work with my new iMac.  I have an external drive, Freeagent GoFlex Drive, that is recognized on the desktop and in the drive utility.  Time machine just "spins it's wheels" and doesn't seem to transfer any information.  I have run repair disk on both drives and repair permissions.  Any ideas how I can make this thing work?

    Did you format the HD first. It has to be formatted to Mac OS Extended (Journaled). If you're not sure how to do this please read:
    http://www.cultofmac.com/92845/formatting-external-hard-drives-in-os-x-video-how -to/

  • Having issues making GarageBand work with iPad and line 6 midi mobilizer. Any suggestions?

    I am having issues making the line 6 midi mobilizer for keyboard work with GarageBand for ipad2.

    Check out the iRig Midi iRig MIDI

  • Making iSight work with Windows Vista on VirtualBox

    I have a MacBook Pro with Windows Vista installed on the VirtualBox platform. The only problem I have is that it will not work with the iSight camera. I need the cam for video conferencing on a webring, and I do have to run the ring in Windows. When I start the ring, the camera comes on but I never get an image. The image screen just says "Initializing" and shows a counter showing the seconds elapsed. Is there a driver I can install, or some sort of workaround?
    Thank you,
    Leah

    Hi,
    Then you need to get at least the Snow Leopard Install Disk at the $29 price.
    The Original Disks will be grey and are Model Specific.
    That is to say that any Grey disks for an iMac for example are only useful to Reinstall the OS on another iMac from the same Production range - say Early 2008
    7:27 PM Thursday; November 11, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Making PSE7 work with Win7  cannot get it to work.

    XP loaded computer went south for good.  New computer has Win7 & does not want to play nice w/ PSE7.  Seems like it won't install correctly,  Anybody have any ideas that have worked?  I see a lot of "try this" but so far none have worked completely or the process of installation is far & beyond my scope of comprehension.    Thanks

    Try placing the images in the same folder as the source file (the .txt file).
    Then you should just be able to use the exact name of the image (no path required).
    I wrote this up in a blog post many years ago (but it hasn't changed):
    http://indesignsecrets.com/data-merging-part-2.php
    I went back to my source files for this example, and it still works in InDesign CS6.

  • LR5 workflow - making it work with PSE10

    Am migrating from using PSE10 exclusivly, to using LR5 first and then PSE only as needed.  I shoot JPG and RAW. Not sure how to handle my PSE catalogue which now contains 80K pictures... Can I get LR to use the same catalogue? and if so, will it add both the jpgs and the Raw?

    You can upgrade your PSE10 catalog to a LR catalog. This is not the same as having PSE and LR "use the same catalog" (your words) as there is no way to make that happen. There is now one catalog for each, and any work done in one catalog is not known by the other; thus if you do this, ther recommendation is that from this point forward, you use the LR catalog.
    Using both JPGs and RAWs of the same image is an option in Lightroom you have to select. File->Preferences->General tab, check Treat JPG files next to RAW as separate photos

  • Safari Cannot Work With Windows Live Spaces

    Hi,
    I'm using Windows Live Spaces, and I need to change the plug-in in Safari for playing .MP3 files from QuickTime to Windows Media Player since QT plug-in cannot play the background music on my blog.
    Besides that, I found that Safari seems not be able to handle some of the codes by Windows Live Spaces. So what should I do? Should I install Windows Systems on my Mac and use Internet Explorer to edit my blog?
    Thanks.

    I need to change the plug-in in Safari for playing .MP3 files from QuickTime to Windows Media Player since QT plug-in cannot play the background music on my blog.
    It sounds like you're trying to use the old <bgsound> tag for the music...? Try using <object> instead for cross-browser support.
    seems not be able to handle some of the codes by Windows Live Spaces. So what should I do? Should I install Windows Systems on my Mac and use Internet Explorer to edit my blog?
    Microsoft have never been too bothered about making things work with non-Microsoft browsers. You may have more luck using [Firefox|www.mozilla.com]. If Internet Explorer is needed (I had a look at the Spaces website but couldn't find anything indicating requirements) then the only way to run that is via Windows.

  • Getting gpg / crypto plugin working with KDE

    Can someone point me to the packages required to get gpg working with kmail.  I didn't see an aegyptian package.  I'm running KDE 3.2.1.
    Thanks.

    johnr wrote:Does that mean I should try to create an Agypten package? with all missing libs contained in pinentry, etc.
    aegypten is a collection of pkgs to make kmail work with gpg - making one aegypten pkg is one way, but you can more simpler just try to rebuild pinentry and then newpg and hope it works
    nice infos can be found here
    http://kmail.kde.org/kmail-pgpmime-howto.html
    besides my old newpg and pinentry the others should be already somewhere in the repos
    johnr wrote:It may be a couple weeks, as I need to finish this semester of school before I get side tracked. But I will try soon.  ... anyone else could feel free to do it instead.
    he he ... for me the semester started some weeks ago - that's why there is quite no time for other things now ... and my laptop is occupied compiling kde 3.2.2 the whole day :-)
    yes, everyone who can help making gpg working with kmail is welcome

  • Is it possible to get Siri to work with 'old' Car handsfree systems?

    Is it possible to get Siri to work with 'old' Car handsfree systems?
    Unless I'm missing something - Siri doesn't work well with older handsfree car systems - as typically the cars built in system handles the voice control and relays the request to the phone over bluetooth protocols.  I tried initiating siri standalone while connected to the car and it failed.
    I was hoping I might be able to do some sneaky like 'Call Siri' to enter Siri mode but it doesn't seem to work.
    I'm guessing future Car handsfree systems will be Siri aware - but making Siri work with older systems (and my car isn't old - it's a 2011 model) would be very useful.
    Has anyone come up with a workaround?  I really don't want to have to buy or use a bluetooth ear piece
    Thanks
    Adam

    I never heard anything on this and so am still unable to use Siri without touching my phone.

  • HT200160 This solution does not seem to work when I upgraded from OS X 10.6 to OS X 10.8 (Mountain Lion).  I've tried all versions of this.  Any suggestions specific to getting this to work with Mountain Lion?

    Any suggestions for making this work with Mountain Lion?  I've tried all similar solutions on web.  I've been able to get this to work with Lion, and after upgrading to Mountain Lion it seems to hold true (doesn't make me implement again).  But when I went from OSX 10.6 to Mountain Lion and have to implement it on 10.8 - it isn't working. Thanks.

    Any suggestions for making this work with Mountain Lion?  I've tried all similar solutions on web.  I've been able to get this to work with Lion, and after upgrading to Mountain Lion it seems to hold true (doesn't make me implement again).  But when I went from OSX 10.6 to Mountain Lion and have to implement it on 10.8 - it isn't working. Thanks.

  • I have a Dell v715w printer and can't make it work with my macbook, need help

    I have a Dell v715w printer and am having difficulty making it work with my MacBook Pro, need suggestions.

    Hi,
    The printer do support AirPrint (the HP Deskjet 3525 is part of the 3520 Series).
    Make sure your printer connected to the same router as your iPad and it shold be listed..
    Be aware that you need iOS 4.2 or higher and your router should support Multicasting for AirPrint to work..
    If the printer isn't listed please clarify your router brand and model, some routers don't offer Multicasting or have the protocol disabled by default.

  • HT201401 4s with latest software update will not power off, text will only vibrate, iPod only works with earphones. When I sync it with iTunes it works until power save mode starts, then back to not powering down, making text sounds, or playing iPod out l

    4s with latest software update will not power off, text will only vibrate, iPod only works with earphones. When I sync it with iTunes it works until power save mode starts, then back to not powering down, making text sounds, or playing iPod out loud.

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • Iphone 4 the mike does not work when making a call.  it does work with speaker phone and face time

    Just activated new Iphone 4 and the mike does not work when making a call.  it does work with speaker phone and face time. Any known fixes?

    My wife's iphone 4 also has your same no ring problem as does my iphone 5 just less often.  I called her iphone 4 at home from where I work 20 miles away on my iphone 5.  With her phone in 3G mode ONE call went through and 9 went to voice mail in 10 tries.  This is a 10% sucess rate!!  I also could listen in real time from the wired work phone and the wired home phone.  She turned off 3G mode and it went to "O" mode at  the top left of the screen after the ATT.  In this mode it rang on the first ring tone 5 times out of 5 tries which is 100% of the time.  I have learned that the calling party will hear up to 4 ring tones when placing a call on the ATT network.  If the ring tone changes volume slightly before the 4th ring then and only then will the cell phone start to ring.  If the ring tone does not change after the 4th ring you get voice mail.  If the calling party does not leave a voice message there is never a missed call displayed on the iphone.  If the calling party does leave a voice message a few minutes later the iphone dings for arriving voice mail but still no missed call indication. 
    This appears to be related to the time of day and the ATT tower that the receiving caller is using.  Tried other towers and it works in 3G mode 10 times out of 10 tries.  Apple replaced the first iphone 4 with a new phone, no improvement.  ATT replaced the SIM card and no improvement.  ATT so far is clue less.  This has been going on every since we got the new iphones which is 4 months.  The ATT web site also describes this same problem from several years ago.  Has anyone got better information?
    Thanks

  • My MacBook Air is making a noise every 7 seconds for 2 seconds. It started today, and I have had it for almost a year.  It is below the power switch and annoying enough that it is hard to even work with the computer.  Ideas?

    My MacBook Air is making a clicking noise every 7 seconds for 2 seconds. It started today, and I have had the computer for almost a year.  It is below the power switch and annoying enough that it is hard to even work with the computer.  It sounds as if a hard drive is trying to work. No applications running.  Ideas?

    If its a MBA with solid state drive then I would guess its the fan touching something ???. I think it have no other moving parts.

  • Is there a workaround for making CanoScan8400F scanner work with OS 10.9?

    I have a Canon 8400 F scanner and a brand new IMac running OS 10.9
    The scanner does not work with its original driver disk, (Apple does not support power PC )...
    I tried downloading the european driver but the IMac didnt seem to like that either.
    Any help would be appreciated!

    You can try using Apple Image Capture located in your Applications Folder or Apple Preview, also in your Applications Folder.
    Mac Basics: Using a Scanner

Maybe you are looking for

  • How to get current date in a specified format ?

    Hi, I want to get the current date (java.util.Date()) in the format yyyy-MM-dd HH:mm:ss. Can you please tell me as to how to get that ? Regards

  • What is the problem after water spill?

    Hello forum. I recently spilt water on my macbook pro's keyboard. I dried it up and was using my mac once again. After a hour or so I went outside and when returned I found it off. Trying to turn it back on but no avail. The batter is good because th

  • My "submit" button is not working?

    Hello I have created my submit button in Dreamweaver using a form. However what I would like to do is have people enter their email address and with the submit button it would be sent to my gmail account. I went to my actions tab for my form and subm

  • Multiplication calculation in form

    I wish to have a form field return a calculation that is a multiplication of another form field. Example: Field name where calculation is to take place = FieldG Field name where base numeric is = FieldF Field G needs to return a calculation that is 3

  • Limiting bandwidth based on site IP address

    Hi, We have a number of sites with different bandwidth capacities ranging fron 256kbps pipes to 1G. We would like to cap the bandwidth used by FMS streaming to each site e.g. stream no more than 384kbps to a site with a 512kbps connection (based on t