Comments (20)
Currently running with Ruby 2.6.0.
from instiki.
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.
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.
Thank you. It does work with Ruby 2.5.1 and Rails 2.3.18 (which is bundled with the application).
from instiki.
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.
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.
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.
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.
Thanks. Heroku push wants a lock file
from instiki.
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.
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.
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.
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.
What version of rails?
from instiki.
The version of rails used by Instiki is bundled with the application. That is not something you have to think about.
from instiki.
I just committed an updated Gemfile.lock.heroku
. Hopefully, that will do the trick for you.
from instiki.
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.
???
Let me make sure I understand what you are doing.
- 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
- and you got the above error at what stage?
from instiki.
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.
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)
- View Original Page Source when Editing Page HOT 7
- Search result page broken (not valid xml) HOT 1
- Emojis in wiki pages not working when editing page HOT 5
- MySQL UTF8 not working after DB restore HOT 3
- Redirection to localhost HOT 3
- Unable to Install of Mac 10.14.6 HOT 7
- Heroku Install Error HOT 18
- Interweb links not working with [[!include web:pagename]] HOT 2
- Re: Interweb links not working with [[!include web:pagename]] HOT 5
- Minor tweaks to improve page creation workflow HOT 3
- Simple way to disable MathJax? HOT 2
- Edit on Heroku deploy results in "undefinedundefined" on sub pages HOT 2
- SVG creation does not work, Instiki 0.30.2(MML+), Heroku, HOT 6
- Running Instiki with Ruby 3.0 HOT 5
- Cache expiration race conditions HOT 15
- Missing index for wiki_references causes high loading times HOT 3
- Broken page cache expiration logic HOT 9
- Instiki Gemfile broken after release of Rack 3 HOT 2
- Dockerfile fails to build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instiki.