Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Advanced setup for Apache

johnadamsDFID edited this page Nov 29, 2013 · 1 revision

Tips that can save hours. Even a line that makes life easier, please add here.

##How to get search working in dev box

  1. Run admin site on port 9000 : ./sbt run
  2. Now to search "test" : http://localhost:9000/search?query=test

You may not find any CSS, but this is a quick way to see search results

##How to host under site apache in dev box to see it through the standard URL

  1. Build site (~/aid-platform-beta/src/platform/site$) : bundle exec middleman build
  2. Copy to www : sudo cp -fR ~/aid-platform-beta/src/platform/site/build/* /var/www/
  3. Run admin site on port 9008 (~/aid-platform-beta/src/platform$): ./sbt "run 9008"
  4. Start apache web server : sudo service apache2 start

If web server is configured (default configuration should be ok), you can browse the site using : http://localhost/ (without any port) and also can search in search box as if in live.

##Problems binding to Port 9000? Run sudo lsof -i -P | grep "9000" And kill any processes already using the port.