rails source for the website freeldssheetmusic.org
installation instructions for site (rails 2.3.8)
To use, download
add 1G swap, swappiness 20 [?]
install ree, must patch tcmalloc first https://github.com/sstephenson/ruby-build/issues/186 and must install it using this to avoid timeout.rb SEGFAULT
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls" /home/rdp/downloads/ruby-enterprise-1.8.7-2012.02/installer --configure-arg --disable-doc
sudo apt-get install libmysqlclient-dev gem install mysql2
~/.gemrc gem: --no-rdoc --no-ri
[install apache]
run passenger install from ree, accept its apt-get suggestions/requirements
config/logrotate.conf follow its instructions
add to apache2.conf:
LoadModule passenger_module /home/rdp/installs/ree-187/lib/ruby/gems/1.8/gems/passenger-5.0.7/buildout/apache2/mod_passenger.so PassengerRoot /home/rdp/installs/ree-187/lib/ruby/gems/1.8/gems/passenger-5.0.7 PassengerDefaultRuby /home/rdp/installs/ree-187/bin/ruby
to /etc/apache2/sites-enabled:
...
(see config file in config dir for full examples)
now create config/database.yml with some new mysql parameters, then run
$ apt-get install mysql-server run mysql then create user 'prod_flds'@'localhost' identified by 'XX'; create database prod_flds_database GRANT ALL PRIVILEGES ON prod_flds_database . * TO 'prod_flds'@'localhost';
$ gem update --system 1.3.7 or some odd version $ gem uninstall rake $ gem install rake -v 0.8.7 $ gem install os $ gem uninstall rack # and reinstall v 1.1.6 -- or do we get the reinstall for free with gems:install perhaps... $ rake gems:install # still needed I think, this is a mess, some are vendored, some have to be installed for native, some have both what? $ gem install sundawg_premailer # bundled but shouldn't be, etc. $ rake db:create # unless you already did, depending on how you setup the mysql DB
$ rake substruct:db:bootstrap $ rake db:migrate
and it should be ready.
sudo apt-get install imagemagick also needs...ghost something...script and...ffmpeg But really you can just email us comments/concerns about the site [email protected] :)
transfer other small'ish websites and test site
sudo apt-get install vsftpd https://help.ubuntu.com/community/vsftpd "The workshop"
create /etc/vsftpd/vusers.txt file appropriately (and its companions), etc.
create dir /home/vftp/carolyn as symlink to correct www folder