Giter VIP home page Giter VIP logo

demo-rails-app's Introduction

demo-rails-app's People

Contributors

dependabot[bot] avatar fantasyteddy avatar geerlingguy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

demo-rails-app's Issues

Demo app can't run on Ruby 2.6.0

TASK [Install required dependencies with bundler.] *****************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "bundle install --path vendor/bundle", "delta": "0:00:04.892550", "end": "2019-01-09 03:11:00.525158", "msg": "non-zero return code", "rc": 5, "start": "2019-01-09 03:10:55.632608", "stderr": "", "stderr_lines": [], "stdout": "Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from http://rubygems.org/..........
Fetching rake 10.4.2
Installing rake 10.4.2
Fetching i18n 0.7.0
Installing i18n 0.7.0
Fetching json 1.8.2
Installing json 1.8.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/opt/demo-rails-app/vendor/bundle/ruby/2.6.0/gems/json-1.8.2/ext/json/ext/generator
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r
./siteconf20190109-17765-o7jztz.rb extconf.rb
creating Makefile

current directory:
/opt/demo-rails-app/vendor/bundle/ruby/2.6.0/gems/json-1.8.2/ext/json/ext/generator
make \"DESTDIR=\" clean

current directory:
/opt/demo-rails-app/vendor/bundle/ruby/2.6.0/gems/json-1.8.2/ext/json/ext/generator
make \"DESTDIR=\"
compiling generator.c
generator.c: In function 'generate_json':
generator.c:867:25: error: 'rb_cFixnum' undeclared (first use in this function);
did you mean 'mFixnum'?
     } else if (klass == rb_cFixnum) {
                         ^~~~~~~~~~
                         mFixnum
generator.c:867:25: note: each undeclared identifier is reported only once for
each function it appears in
generator.c:869:25: error: 'rb_cBignum' undeclared (first use in this function);
did you mean 'rb_cFixnum'?
     } else if (klass == rb_cBignum) {
                         ^~~~~~~~~~
                         rb_cFixnum
generator.c: At top level:
cc1: warning: unrecognized command line option '-Wno-self-assign'
cc1: warning: unrecognized command line option '-Wno-parentheses-equality'
cc1: warning: unrecognized command line option '-Wno-constant-logical-operand'
cc1: warning: unrecognized command line option '-Wno-cast-function-type'
Makefile:243: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/opt/demo-rails-app/vendor/bundle/ruby/2.6.0/gems/json-1.8.2 for inspection.
Results logged to
/opt/demo-rails-app/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-1.8.2/gem_make.out

An error occurred while installing json (1.8.2), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.2' --source 'http://rubygems.org/'`
succeeds before bundling.

So... for the purposes of Ansible for DevOps, I may need to rebuild the demo app and use a new series of tags, e.g. 2.0.0, 2.0.1, etc.

Add Travis CI test suite?

Something super basic, but:

  1. Test that the gems install and the server runs.
  2. Set up cron โ€” monthly / master branch โ€” in Travis CI.

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.