Installing FromThePage on OS X for Development

Ben W. Brumfield edited this page Jan 30, 2015 · 1 revision

Assuming that Rails, Ruby, and a Database are already accessible:

Database Set-up

# create the database
mysql
MariaDB [(none)]> create user rails;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> set password for rails = PASSWORD('rails');
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> create database fromthepage_development character_set='utf8' collate='utf8_general_ci';

Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant  all privileges on fromthepage_development.* to 'rails'@'localhost';
Query OK, 0 rows affected (0.00 sec)

Get the Code

# cd into the location you want FromThePage installed, probably /home/fromthepage
cd /home/fromthepage
#get the code
git clone "git://github.com/benwbrum/fromthepage.git"

Configure the connection

# edit the database.yml to change the development db to fromthepage_development and update the password appropriately
#  also had to comment out the "socket" line and add a "hostname" value

Run the app

bundle install
rails s

Direct your browser to http://localhost:3000/

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.