Giter Club home page Giter Club logo

Comments (20)

distler avatar distler commented on July 16, 2024 1

Currently running with Ruby 2.6.0.

from instiki.

distler avatar distler commented on July 16, 2024 1

I just pushed out a new Gemfile for heroku (needed to do this anyways).

To get Ruby (and more generally, the commandline compiler tools needed for this and other tasks), what you need to do is install XCode.app and then install the commandline tools, that accompany it, by typing xcode-select --install in a terminal window.

Then you should be able to

git clone https://github.com/parasew/instiki.git
cd instiki
ruby bundle install --path vendor/bundle

That'll get you a copy of Instiki on your Mac. To deploy to Heroku, get rid of the old Gemfile.lock.heroku and follow the instructions.

from instiki.

distler avatar distler commented on July 16, 2024

If you pull the latest from Github, it works with Ruby 2.5.1.

The version of Rails which works comes bundled with the application, so you don't need to concern yourself with that.

from instiki.

Shamaoke avatar Shamaoke commented on July 16, 2024

Thank you. It does work with Ruby 2.5.1 and Rails 2.3.18 (which is bundled with the application).

from instiki.

christopinka avatar christopinka commented on July 16, 2024

Unfamiliar with RoR. I may have a versions related issue. Deploying to Heroku -

remote: -----> Using Ruby version: ruby-2.5.3 remote: -----> Installing dependencies using bundler 1.15.2

remote: An error occurred while installing json (1.8.3), and Bundler cannot continue. remote: Make sure that gem install json -v '1.8.3'succeeds before bundling. remote: remote: In Gemfile: remote: rdoc was resolved to 4.2.2, which depends on remote: json remote: remote: ! remote: ! Failed to install gems via Bundler. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed

further up I see errors

remote: current directory: remote: /tmp/build_59a0ab0518d5d55d3943beb61720424d/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator remote: make "DESTDIR=" remote: compiling generator.c remote: generator.c: In function ‘generate_json’: remote: generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function); remote: did you mean ‘mFixnum’? remote: } else if (klass == rb_cFixnum) { remote: ^~~~~~~~~~ remote: mFixnum

from instiki.

distler avatar distler commented on July 16, 2024

Hmmm.

json (1.8.3)? I would have expected the current version (2.2.0).

I see... The Gemfile.lock.heroku file is seriously out-of-date. Try deleting it and doing bundle install again. If that succeeds, we should update the Gemfile.lock.heroku file with the one you generate.

from instiki.

christopinka avatar christopinka commented on July 16, 2024

I don't have a Ruby env local. Can you put it in a branch?

or

I setup RoR - why not.

Do you have a good intro for that I'm on a Mac. Is it only $brew install ruby ?

https://gorails.com/setup/osx/10.13-high-sierra?

brew install rbenv ruby-build ?

Do I need Rails installed as well to do this?

from instiki.

distler avatar distler commented on July 16, 2024

I should say that, if you don't want to install a copy of Instiki locally on your Mac, just getting rid of the Gemfile.lock.heroku file ought to be sufficient to deploy to Heroku (though, not having a Heroku deployment, myself, I haven't actually tried this).

from instiki.

christopinka avatar christopinka commented on July 16, 2024

Thanks. Heroku push wants a lock file

from instiki.

christopinka avatar christopinka commented on July 16, 2024

using the native bundler doesn't work. Lacks permissions on system gems. Intalling rbenv and 2.6.0 and then bundler gem. Will let you know how it goes.

from instiki.

distler avatar distler commented on July 16, 2024

using the native bundler doesn't work. Lacks permissions on system gems.

?? The whole point of bundler is to avoid globally installing the needed gems (instead, bundle install --path vendor/bundle installs them in the aforementioned subdirectory of the Instiki directory).

Intalling rbenv and 2.6.0 and then bundler gem. Will let you know how it goes.

OK. Sorry about this. The Heroku model is that you first install your app locally, then push that exact configuration to Heroku. So I guess you really do need to be able to install locally ...

from instiki.

christopinka avatar christopinka commented on July 16, 2024

ok. Well, this was the last I got anyway. Using 2.6.0, so maybe I need to specify in the Gemfile.

2019-03-27T00:15:25.906184+00:00 heroku[web.1]: State changed from starting to crashed 2019-03-27T00:15:25.789992+00:00 app[web.1]: bundler: failed to load command: thin (/app/vendor/bundle/ruby/2.5.0/bin/thin)

Also, required postgres lib.

Thanks for your help

from instiki.

distler avatar distler commented on July 16, 2024

Umh. The Ruby gems installed by Bundler correspond to the version of Ruby in use (i.e., they are installed in vendor/bundle/ruby/2.x.x/). If you change Ruby versions, you need to rerun bundle install.

Also, required postgres lib.

Yes, the Heroku configuration uses postgres as the database in production.

from instiki.

christopinka avatar christopinka commented on July 16, 2024

What version of rails?

from instiki.

distler avatar distler commented on July 16, 2024

The version of rails used by Instiki is bundled with the application. That is not something you have to think about.

from instiki.

distler avatar distler commented on July 16, 2024

I just committed an updated Gemfile.lock.heroku. Hopefully, that will do the trick for you.

from instiki.

christopinka avatar christopinka commented on July 16, 2024

heroku[web.1]: State changed from starting to crashed 2019-03-27T05:22:16.935076+00:00 app[web.1]: Missing the Rails gem. Please gem install -v= rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. 2019-03-27T05:22:17.034298+00:00 heroku[web.1]: Process exited with status 1

from instiki.

distler avatar distler commented on July 16, 2024

???

Let me make sure I understand what you are doing.

  1. You did a
    git clone https://github.com/parasew/instiki.git
    cd instiki
    heroku create [APPNAME]
    mv Gemfile Gemfile.orig
    git mv Gemfile.heroku Gemfile
    git mv Gemfile.lock.heroku Gemfile.lock
    git commit -m "Setup for heroku"
    git push heroku master
    heroku config:set RAILS_ENV=production
    heroku run rake db:migrate
    
  2. and you got the above error at what stage?

from instiki.

christopinka avatar christopinka commented on July 16, 2024

after >git push heroku master
and

heroku open
shows error
and
heroku logs

The app is running locally now. I like the s5 integration.

from instiki.

distler avatar distler commented on July 16, 2024

Well, I just set up a Heroku account, followed precisely the steps I set out in the Instiki README:

heroku login -i
git clone https://github.com/parasew/instiki.git
cd instiki
heroku create [APPNAME]
mv Gemfile Gemfile.orig
git mv Gemfile.heroku Gemfile
git mv Gemfile.lock.heroku Gemfile.lock
git commit -m "Setup for heroku"
git push heroku master
heroku config:set RAILS_ENV=production
heroku run rake db:migrate

and had an Instiki instance up and running on Heroku in under 5 minutes. I am going to assume (in the absence of other feedback) that the instructions worked for you too.

from instiki.

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.