Giter VIP home page Giter VIP logo

Comments (8)

jasnow avatar jasnow commented on June 2, 2024

What version of ruby are you using?

from railsgoat.

joelbrewer avatar joelbrewer commented on June 2, 2024

image

Using rbenv -- this was the only 2.7.0 version available.

from railsgoat.

jasnow avatar jasnow commented on June 2, 2024

I use rvm with .rvmrc: rvm use [email protected] --create

from railsgoat.

joelbrewer avatar joelbrewer commented on June 2, 2024

Got it - I'll try using rvm 👍

from railsgoat.

treisland avatar treisland commented on June 2, 2024

Any update on. This has been a nightmare to install on a fresh ubuntu instance as well as a docker container.

from railsgoat.

cktricky avatar cktricky commented on June 2, 2024

@treprime are you using RVM as noted above?

from railsgoat.

treisland avatar treisland commented on June 2, 2024

@cktricky I managed to get it working on my instance of Ubuntu. Steps below

  • Install ruby and ruby-build

     sudo apt-get install ruby \
     ruby-build -y
    
  • Install mysql

      sudo apt-get install mysql-server \
      mysql-client \
      libmysqlclient-dev
    
  • Install rvm (ruby version manager)

      curl -sSL https://get.rvm.io | bash
    
  • source the directory

      source ~/.rvm/scripts/rvm
    
  • Install the bundler

      gem install bundler
    
  • Clone railsgoat

      git clone https://github.com/OWASP/railsgoat.git
      cd railsgoat
    
  • Install ruby 2.7 preview

      rvm install "ruby-2.7.0-preview1"
    
  • Install the bundles

      bundle install
    
  • Setup the database

      bundle exec rake db:setup
    
  • Start the server

      bundle exec rails server
    
  • Open a browser and navigate to http://localhost:3000

from railsgoat.

cktricky avatar cktricky commented on June 2, 2024

Thank you @tre-island. I think I need to try and build this on a fresh ubuntu install to see what we could improve on our end.

from railsgoat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.