Coder Social home page Coder Social logo

ilr's Introduction

== ILR

Setup =======

Rails 2.3.11
Requires patch to fix problems with cookies and redirects when running on Mongrel 1.1.5.
The patch is at https://gist.github.com/826692 => config/initializers/mongrel.rb
See also the following discussion thread: https://rails.lighthouseapp.com/projects/8994/tickets/4690


The git repository is at https://github.com/eddieridwan/ILR

Deploy ======

Hosted at https://ns40.mochahost.com:2083/, basic shared hosting service.
Deploy using FTP
There is no ssh or command line access. So have to manually create the database using
cpanel Mysql facilities.

For the mochahost production environment, must also freeze rails (rake rails:freeze:gems) to vendor/rails to patch a problem with 
loading gems: http://betterlogic.com/roger/2011/05/undefined-method/. i.e. make changes to gem_dependency.rb
FTP vendor/rails if changes are required to rails.

For the mochahost production environment, must also unpack any gems to vendor/gems. To unpack the gems run
  rake gems:unpack:dependencies GEM=gem_name
in the rails shell in Aptana Studio. This rake command does not seem to work in git bash.
When adding new gems remember to unpack the gems and FTP vendor/gems 

To migrate databases:
1. export production database from phpMysqladmin (mysqldump)
2. import the database dumpfile: mysql dumpfile < local database
3. set database.yml to point to the imported local database
4. rake db:migrate the new database (if necessary, change the version in the schema_migrations table)
5. mysqldump new database > database dump to publish to mochahost
6. in mochahost import the database dump to a new server database (or existing A|B database)
7. create (or edit existing A|B) ilr app to point to the new server database
8. test and then switch to become the main languagetechnologies.com app

Point http://languagetechnologies.com to the new ilr app.
Do this using the RoR url rewrite facility on the mochahost cpanel.
May also need to edit the .htaccess file in the public_html folder as the domain may still be pointing to the old ilr app.


TODO ====================
1. Find out a way to use bundler on mochahost, pointing to gems in /home/eddier/ruby/gems
2. Or find out a way to load gems from /home/eddier/ruby/gems

ilr's People

Stargazers

 avatar Eddie Ridwan avatar

Watchers

Eddie Ridwan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.