lazzarello / instiki-heroku Goto Github PK
View Code? Open in Web Editor NEWa fork of instiki that runs on heroku. follows 80% use case worst practices to make the code quickly deployable..
Home Page: http://instiki.org/show/HomePage
a fork of instiki that runs on heroku. follows 80% use case worst practices to make the code quickly deployable..
Home Page: http://instiki.org/show/HomePage
= Instiki Instiki is a wiki clone so pretty and easy to set up, you'll wonder if itβs really a wiki. Runs on Rails and focuses on portability and stability. Supports file uploads, PDF export, RSS, multiple users and password protection. Some use Instiki as a CMS (Content Management System) because of it's ability to export static pages. Instiki lowers the barriers of interest for when you might consider using a wiki. It's so simple to get running that you'll find yourself using it for anything -- taking notes, brainstorming, organizing a gathering. == Supported Platforms This fork is designed for deploying instiki to Heroku. I recommend using the real release version if you wish to run it anywhere else. Download the source at http://instiki.org/ Note for Heroku read-only filesystem: file uploads are disabled by default. == 5 easy Steps to get the Instiki on Heroku experience #!/bin/bash git clone git://github.com/lazzarello/instiki-heroku.git cd instiki-heroku heroku create git push heroku master heroku rake db:migrate === If you are on Linux You are already rad, you got this. Follow the 5 step program === If you are on Mac OSX Install git and heroku and follow the 5 step program. === If you are on Windows You may be screwed, but I don't know because I recommend running Debian GNU/Linux for everything except for entertaining yourself, for that I recommend MacOS X. === Backing up on Heroku. http://devcenter.heroku.com/articles/pgbackups == Features * Regular expression search: Find deep stuff really fast * Revisions: Follow the changes on every page from birth. Rollback to an earlier rev * Export to HTML or markup in a zip: Take the entire wiki with you home or for reference * RSS feeds to track recently revised pages * Multiple webs: Create separate wikis with their own namespace * Password-protected webs: Keep it private * Authors: Each revision is associated with an author, so you can see who changed what * Reference tracker: Which other pages are pointing to the current? * Five markup choices: Markdown-based choices [http://daringfireball.net/projects/markdown/syntax]: Markdown+itex2MML (the default; requires itex2MML) Markdown+BlahTeX/PNG (requires blahtex and a working TeX installation Markdown Textile [http://www.textism.com/tools/textile] RDoc [http://rdoc.sourceforge.net/doc] * Embedded webserver: uses Mongrel (if installed), or the bundled WEBrick webserver (if not). * Internationalization: Wiki words in any latin, greek, cyrillian, or armenian characters * Color diffs: Track changes through revisions * Runs on SQLite per default, can be configured to run on PostgreSQL, MySQL, DB2, Firebird, Openbase, Oracle, SQL Server or Sybase == History: * See CHANGELOG == Migrating from Instiki 0.11-0.12 to 0.16.3 rake upgrade_instiki == Migrating Instiki 0.10.2 storage to Instiki 0.11.0 database 1. Install Instiki 0.11 and check that it works (you should be able to create a web, edit and save a HomePage) 2. Execute ruby script\import_storage \ -t /full/path/to/instiki0.10/storage \ -i /full/path/to/instiki0.10/installation \ -d sqlite (or mysql, or postgres, depending on what you use) \ -o instiki_import.sql for example (Windows): ruby script\import_storage -t c:\instiki-0.10.2\storage\2500 -i c:\instiki-0.10.2 -d sqlite -o instiki_import.sql 3. This will produce instiki_import.sql file in the current working directory. Open it in a text editor and inspect carefully. 4. Connect to your production database (e.g., 'sqlite3 db\prod.db'), and have it execute instiki_import.sql (e.g., '.read instiki_import.sql') 5. Execute ruby script\reset_references (this script parses all pages for crosslinks between them, so it may take a few minutes) 6. Restart Instiki 7. Go over some pages, especially those with a lot of complex markup, and see if anything is broken. The most common migration problem is this: if you open All Pages and see a lot of orphaned pages, you forgot to run ruby script\reset_references after importing the data. ===Upgrading from Instiki-AR Beta 1 In Beta 2, we switch to ActiveRecord:Migrations. Therefore: 1. Back up your production database. 2. Open command-line session to your database and execute: create table schema_info (version integer(11)); insert into schema_info (version) values (1); 3. Go back to the shell, change directory to the new Instiki and execute "rake migrate". Step 2 creates a table that tells to ActiveRecord:Migrations that the current version of this database is 1 (corresponding to Beta 1), and step 3 makes it up-to-date with the current version of Instiki. == Download the latest release from: * http://rubyforge.org/project/showfiles.php?group_id=186 == Visit the "official" Instiki wiki: * http://instiki.org == License: * same as Ruby's --- Authors:: Versions 0.0 to 0.9.1:: David Heinemeier Hansson Email:: david[AT]loudthinking.com Weblog:: http://www.loudthinking.com[http://www.loudthinking.com] From 0.9.2 onwards:: Alexey Verkhovsky Email:: alex[AT]verk.info From 0.11 onwards:: Matthias Tarasiewicz and 5uper.net Email:: parasew[AT]gmail.com Website:: http://5uper.net[http://5uper.net] From 0.13 onwards:: Matthias Tarasiewicz and Jacques Distler Email:: instiki-devel[AT]rubyforge.org Weblog Jacques: http://golem.ph.utexas.edu/~distler/blog/ Weblog Parasew: http://parasew.com
Hi,
I couldn't deploy instiki to heroku because of the following error:
rake aborted!
cannot load such file -- iconv
/app/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in require' /app/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in
<top (required)>'
/app/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb:1:in require' /app/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb:1:in
<top (required)>'
/app/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb:2:in require' /app/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb:2:in
<top (required)>'
/app/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in require' /app/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in
block in <top (required)>'
/app/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in each' /app/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in
<top (required)>'
/app/vendor/rails/activesupport/lib/active_support.rb:55:in require' /app/vendor/rails/activesupport/lib/active_support.rb:55:in
<top (required)>'
/app/vendor/rails/railties/lib/tasks/misc.rake:18:in require' /app/vendor/rails/railties/lib/tasks/misc.rake:18:in
<top (required)>'
/app/vendor/rails/railties/lib/tasks/rails.rb:4:in load' /app/vendor/rails/railties/lib/tasks/rails.rb:4:in
block in <top (required)>'
/app/vendor/rails/railties/lib/tasks/rails.rb:4:in each' /app/vendor/rails/railties/lib/tasks/rails.rb:4:in
<top (required)>'
/app/rakefile.rb:10:in require' /app/rakefile.rb:10:in
<top (required)>'
When I try to push a clone of this to heroku, I get the error message: Heroku push rejected, no Cedar-supported app detected. I'm not sure what is causing the incompatibility.
Hi
If you don't bundle install
before pushing to heroku, you are in for a surprise. (this isn't trivial, since the repo is like 20MiB). Also, you need to commit the Gemfile.lock that is generated after running bundle install.
z.
Hi
When I run heroku run rake db:migrate
it crashes with
rake aborted!
No such file or directory - /app/log/production.log
/usr/local/lib/ruby/1.9.1/logger.rb:549:in `initialize'
I fixed it in the manner recommended in this issue, that is, by commenting out the logger in config/environments/production.rb
.
There doesn't seem to be any reason to use logger anyway, because Heroku uses logplex (or it did, at the time of [this question](http://stackoverflow.com/questions/6809497/heroku-production-log-file-location
z.
Hi again, I merged instiki from http://github.com/parasew to update to version 0.19.3 would you take a look?
I can't do a pull request since github throws an error when I try it
Hi
When I visit the app in a browser I am told the application has experienced errors. When I check the logs with heroku logs
I see then following.
2013-01-08T06:11:06+00:00 app[web.1]: script/server:2:in `require': no such file to load -- script/../config/boot (LoadError)
I fixed this by using require_relative
instead of require
in line 2 of said script (also, the path being required needed to be changed for some reason).
z.
Hello,
I would like to Instiki as website on Heroku.
http://www.instiki.org/show/HowToUseInstikiAsWebSite
but Heroku is not supported virtual host.
I'm tried published option, so url was made "example.heroku.com/instiki/published"
I would like to url access is root directory.
are there how to solve it ?
Thanks.
I got below error when I push to heroku.
"NoMethodError: undefined method `=~' for #Pathname:/app/config.ru"
method '=~' is used at 'script/server:78'
I'm newbie on ruby so I don't know how to fix correctly. ^^.
Hi everyone, I recently managed to push Instiki to Heroku. Since I haven't found any project concerning Instiki on Heroku that was up to date, I decided to push the build that worked for me to github. I also included the steps that were necessary for me in order to get Instiki running on Heroko.
Hopefully this will help someone.
Link: https://github.com/Stesu/instiki-heroku-2014
Hi
When running heroku run rake db:migrate
I get a crash with the following,
Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (no such file to load -- pg)
This is fixed by including gem activerecord-postgresql-adapter
in the Gemfile, bundling, and committing before trying again.
z.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.