Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (56 sloc) 1.74 KB

Install PageOneX locally

Download the files from https://github.com/numeroteca/pageonex

Needs

PageOnex runs in Ruby on Rails, so you'll ned to install:

Process

You might want to clone the repository with git:

git clone git@github.com:numeroteca/pageonex.git

Or download the .zip file from https://github.com/numeroteca/pageonex/archive/master.zip

Go to the directory

cd pageonex

Setup a database and then edit the config/database.yml file to give the app access to that database (we use MySQL).

Install the gems

bundle install

Run the migration (this will create the database with its tables):

rake db:migrate

Create a PageOneX admin user like this:

rails console
User.create(:username=>'admin-user',:email=>'admin-user@admin.admin',:password=>'hola1234',:password_confirmation=>'hola1234')
me = User.first
me.admin = true
me.save

Load the list of newspapers into the data base:

rake scraping:update_media

Run the server:

rails server

You can now navigate the app at http://localhost:3000/ or http://0.0.0.0:3000/

Options

If you have problems with the dependencies of the gems check this tricks.

Problems with dependencies

Run the same commands with 'bundle exec' like

bundle exec rake db:migrate

If you have problems with the pg gem, needed for the "heroku" version, you can run:

bundle install --without heroku
You can’t perform that action at this time.