sudo apt-get ruby libmysqlclient-dev libsqlite3-dev mysql-server-5.6
gem install bundler
sudo gem install therubyracer
sudo gem install libv8
bundle install
sudo gem install rack
-
Rename
config/database.example.ymltoconfig/database.ymland edit the values there in. Note that SQLite is not supported as one of the queries usesALTER TABLE ... ADD CONSTRAINT. -
Run
rackup, it should error with ``raise_no_secret_key': Devise.secret_key was not set. Please add the following to your Devise initializer`. -
Rename
config/initializers/devise.examples.rbtoconfig/initializers/devise.rband add theconfig.secret_key = ''line from the previous step into it. Look for# config.secret_keyfor placement (it should be at the top). -
Rename
config/initializers/secret_key.examples.rbtoconfig/initializers/secret_key.rband set a new secret key inside it.rackup
-
GreasyFork should now be running on http://localhost:9292
-
You will get errors because we haven't populated the database. Run ...
bin/rake db:migrate RAILS_ENV=development?