Archívum

A(z) ‘Weboldal készítés’ kategória archívuma

Redmine első betöltésének gyorsítása

szeptember 23rd, 2011 LeGyEs Nincsenek hozzászólások

    /etc/apache2/sites-enabled/@redmine

    # Speeds up spawn time tremendously -- if your app is compatible.
    # RMagick seems to be incompatible with smart spawning
    RailsSpawnMethod smart

    # Keep the application instances alive longer. Default is 300 (seconds)
    PassengerPoolIdleTime 1000

    # Keep the spawners alive, which speeds up spawning a new Application
    # listener after a period of inactivity at the expense of memory.
    RailsAppSpawnerIdleTime 0

    # Additionally keep a copy of the Rails framework in memory. If you're
    # using multiple apps on the same version of Rails, this will speed up
    # the creation of new RailsAppSpawners. This isn't necessary if you're
    # only running one or 2 applications, or if your applications use
    # different versions of Rails.
    RailsFrameworkSpawnerIdleTime 0

    # Just in case you're leaking memory, restart a listener
    # after processing 5000 requests
    PassengerMaxRequests 5000

    # only check for restart.txt et al up to once every 5 seconds,
    # instead of once per processed request
    PassengerStatThrottleRate 5

    Forrás: http://stackoverflow.com/questions/853532/slow-initial-server-startup-when-using-phusion-passenger-and-rails

    Facebook és Twitter automatikus üzenet a weblapról, RSS-ből

    szeptember 21st, 2010 LeGyEs Nincsenek hozzászólások

      A híroldalaknál újabban igény lett, hogy Facebook-on és Twitteren is megjelenjenek a hírek. Az OAuth-os programozás a kezdő programozóknak feldobja a piros pöttyöst, ahogy nekem is. Erre nyújt megoldást a Twitterfeed nevű szolgáltatás, ami RSS feedek tartalmát képes elküldeni a Facebook és Twitter oldalunkra. Az RSS feed létrehozása egyszerű, ha már egy weboldalt létre tudunk hozni.

      A szolgáltatás ingyenes és itt található: http://twitterfeed.com Olvass tovább…