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.yml
toconfig/database.yml
and 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.rb
toconfig/initializers/devise.rb
and add theconfig.secret_key = ''
line from the previous step into it. Look for# config.secret_key
for placement (it should be at the top). -
Rename
config/initializers/secret_key.examples.rb
toconfig/initializers/secret_key.rb
and 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
?