Skip to content

Commit

Permalink
Add lib-yaml-dev dependecy (thewca#7556)
Browse files Browse the repository at this point in the history
* Added lib-yaml-dev dependecy

* Remove trailing whitespace
  • Loading branch information
FinnIckler authored Feb 17, 2023
1 parent 5bbeedb commit f81d70d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ This repository contains all of the code that runs on [worldcubeassociation.org]
Feel free to take a look at our [chef recipe](https://github.com/thewca/worldcubeassociation.org/blob/master/chef/site-cookbooks/wca/recipes/default.rb#L6-L23)
for the accurate versions we use and how we install them.
Please note that other versions may work, but it is not guaranteed.
3. `bundle install && bin/yarn`
4. `bin/rake db:load:development` - Download and import the [developer's database export](https://github.com/thewca/worldcubeassociation.org/wiki/Developer-database-export). Depending on your computer it may take a long time. Alternatively you can run `bin/rake db:reset` which will create the database and seed it with random data (it's way faster, but less representative of our website content).
5. `bin/rails server` - Run rails. The server will be accessible at localhost:3000
3. Install `libyaml` using your package manager of choice, eg. [Mac](https://formulae.brew.sh/formula/libyaml) or [Ubuntu](https://launchpad.net/ubuntu/+source/libyaml)
4. `bundle install && bin/yarn`
5. `bin/rake db:load:development` - Download and import the [developer's database export](https://github.com/thewca/worldcubeassociation.org/wiki/Developer-database-export). Depending on your computer it may take a long time. Alternatively you can run `bin/rake db:reset` which will create the database and seed it with random data (it's way faster, but less representative of our website content).
6. `bin/rails server` - Run rails. The server will be accessible at localhost:3000
- Run tests.
1. `RAILS_ENV=test bin/rake db:reset` - Set up test database.
2. `RAILS_ENV=test bin/rake assets:precompile` - Compile some assets needed for tests to run.
Expand Down
1 change: 1 addition & 0 deletions WcaOnRails/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y \
nodejs \
mariadb-client \
libssl-dev \
libyaml-dev \
tzdata

RUN gem update --system && gem install bundler
1 change: 1 addition & 0 deletions chef/site-cookbooks/wca/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
# Install native dependencies for gems
package 'libghc-zlib-dev'
package 'libsqlite3-dev'
package 'libyaml-dev' #newly required by Psych 5.0
package 'g++'
package 'libmysqlclient-dev'
package 'imagemagick'
Expand Down

0 comments on commit f81d70d

Please sign in to comment.