`
catrose
  • 浏览: 6504 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

insoshi安装

阅读更多
Installation
Insoshi is written in Ruby on Rails, so installing Insoshi means downloading the source code and running it on your local computer.  There are several methods to do this, which we list in order of increasing involvement in the Insoshi project.


Option #1: Source only (easy to download but no updates and hard to contribute)

If all you want is the source code, you can download the most recent release of Insoshi here.  Keep in mind that Insoshi is still evolving rapidly, though, so if you want to get easy updates or contribute you should read on about using Git.


Option #2: Cloning with Git (fairly easy to download, hard to contribute)

The source code to Insoshi is managed via Git, a version control system developed by Linus Torvalds to host the Linux kernel development.  What this means is that you can easily download the Insoshi source, get updates, contribute and manage your own local work.  (For information on installing Git, check out our guide for Installing Git.)

If you're already familiar with Git, you can clone our public Git repository on GitHub via the command

  git clone git://github.com/insoshi/insoshi.gitYou should also create a local development branch in your Git repository:

git checkout -b <firstname_lastname>where you should replace <firstname_lastname> with the your name (without the angle brackets!).

For more information on configuring your local clone of our repository, check out our Git Guides which also includes a scripted Quick Local Repository Setup (see next).


Option #3 (recommended): Forking at GitHub (still easy to download, easy to contribute)
The best way to get started with Insoshi if you want updates and might want to contribute is to follow the steps on our Quick Local Repository Setup.  This involves going to GitHub and forking our repository, to which you can then make changes.  By issuing a pull request at GitHub, you can let us know about your changes and start the process of incorporating them into Insoshi.  See our extensive Git Guides for more information.


Completing the installation

[This document includes and expands upon the README.rdoc included with the Insoshi code.  Check the README for any changes, especially if you're using the edge branch.]

Once you've gotten the source code using one of the above methods, you should install the libraries and gems needed by Insoshi.

Rails
If you don't already have Rails on your computer, you should download and install Rails now.

Required Libraries

Insoshi recommends using FreeImage and ImageScience for image manipulation:

FreeImage - an open source library project that supports standard graphics image formats (PNG, JPEG, etc.)
(If you're installing FreeImage on Windows, take a look at this blog post to avoid some possible headaches and issues.)

Insoshi will also work with ImageMagick/RMagick (more powerful but harder to install):
ImageMagick
RMagick - installed as a gem but site has details for getting ImageMagick installed/built
You also need one of following databases

SQLite - a self-contained, serverless, zero-configuration, transactional SQL database engine (see note for Sphinx below!)

MySQL - the popular open source database
PostgreSQL - another good choice for an open source database

Insoshi uses Sphinx/Ultrasphinx for search

Sphinx

Ultrasphinx - Ruby on Rails Sphinx client (included with the Insoshi source under vendor/plugins)
Search using Sphinx is not supported with SQLite.  You'll have to use either MySQL or PostreSQL as your database or disable the search functionality.

When running Insoshi in a production environment, you should also set up a cron job to rotate the search index as described in the Ultrasphinx deployment notes.

Installation instructions can be found on their sites or via a Google search.

Required Gems
Insoshi requires the following gems

rails
mysql - if you're using MySQL as your database engine
chronic - required for Ultrasphinx

image_science - if you're using FreeImage
rmagick - if you're using RMagick

You can install these gems via
  gem install <gem>Optional Gems
If you want Markdown formatting support you can install one of the following gems

rdiscount - fast but platform-dependent
BlueCloth - slower but pure Ruby

Configuring Your Insoshi Installation
You will need to set up your database configuration.  If you're using MySQL, you can just copy the example file:

  cp config/database.example config/database.ymlThen open up database.yml and set up the passwords to match your system. 

Run the following custom install script

  script/installThe install script will run the database migration and performs some additional setup tasks (generate an encryption keypair for password management,  creating an admin account, etc.)

If the install step fails, you may not have properly set up your database configuration.

Then prepare the test database and run the tests (which are actually RSpec examples in the spec/ directory):

  rake db:test:prepare  rake specIf the tests fail in the Photos controller test, double check that FreeImage/image_science or ImageMagick/rmagick are installed.

At this point, you'll need to configure and start the Ultrasphinx daemon for the test runtime

  rake ultrasphinx:configure RAILS_ENV=test  rake ultrasphinx:index RAILS_ENV=test  rake ultrasphinx:daemon:start RAILS_ENV=testand re-run the tests

  rake specThe search specs detect whether the search daemon is running and weren't performed during the first test run.  An initial test run is needed in order to populate the test database for indexing (search specs would fail on an empty database).

To shut down stop the Ultrasphinx daemon for test

  rake ultrasphinx:daemon:stop RAILS_ENV=testLoading Sample Data and Starting the Server
You can load sample data to make development easier:
  rake db:sample_data:reloadconfigure and start the Ultrasphinx daemon for the development runtime

  rake ultrasphinx:configure  rake ultrasphinx:index  rake ultrasphinx:daemon:startand start the server
  script/serverGo to http://localhost:3000

All the sample users have the email logins <name>@example.com with the password foobar

So, to log in as michael, use the following


email: michael@example.com
password: foobar

Admin User
To sign in as the pre-configured admin user, use


email: admin@example.com
password: admin


You should update the email address and password.  Insoshi will display warning messages to remind you to do that.

Start Hacking
Now you can open up your favorite editor and start hacking away at the Insoshi source code.

Check out our Git Guides for information on how to manage your local development and how you can contribute your updates back to us.

Stat Tracker
Note that there is a minimalist stat tracker in Insoshi that lets us keep track of how many different installs of Insoshi are out there.  We don't collect any personal information, but if you don't want to be tracked, just open application.html.erb and comment out the line after this one
上海基方太阳能

<%# A tracker to tell us about the activity of Insoshi installs %>
分享到:
评论

相关推荐

    Ruby on rails tutorial中文版(第二版)

    也曾使用 Ruby on Rails 开发过一个名为 Insoshi 的社交网络平台,这个平台曾经很流行,现在已经过气了。因为他对 Ruby 社区的贡献,于 2011 年被授予了 Ruby Hero 奖。他毕业于哈佛学院,并获得了加州理工学院的...

    二级理论题(选择83+判断96).xlsx

    二级理论题(选择83+判断96).xlsx

    2024年中国超声非侵入式腐蚀检测传感器行业研究报告.docx

    2024年中国超声非侵入式腐蚀检测传感器行业研究报告

    设备OEE实践与教学知识

    设备自动化综合利用率实践,详细描述了OEE各方面的参数与应用,让设备自动化工厂利用此工具可以快速提高生产

    tensorflow-gpu-2.2.3-cp37-cp37m-win-amd64.whl

    python

    server-jre-8u411-windows-x64.tar.gz

    server-jre-8u411-windows-x64.tar.gz

    node-v7.8.0-sunos-x64.tar.xz

    Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。

    基于51单片机秒表的程序设计.RAR

    单片机学习代码资料

    升压斩波电路Multisim源文件-输入电压DC15V,输出电压调节范围:+18V~+30V,电流:500mA~100mA范围

    输入电压DC15V,输出电压调节范围:+18V~+30V,电流:500mA~100mA范围,纹波1%

    nacos-server-2.3.2

    nacos-server-2.3.2

    聚类微博数据可视化分析系统 技术框架python + django + mysql + nlp + 聚类 +pycharm

    聚类微博数据可视化分析系统 技术框架 python + django + mysql + nlp + 聚类 +pycharm 角色介绍 普通用户 qqq 123456 模块分析 登录注册 数据获取 数据处理 数据挖掘 NLP情感分析 K-means聚类分析 敏感词预警 (支持邮箱发送模式) 不同聚类 (三个不同的聚类计算结果对比,选择最优的聚类来显示) 数据可视化模块 大事件数据可视化 热点数据排行 热门主题词云 评论数据可视化 时间顺序可视化 退出模块 数据库weibo_nlp_system 分析原理 我的最爱是动漫,你喜欢什么呢? 我 的 最爱 是 动漫 你 喜欢 什么 呢

    选择判断题库.doc

    选择判断题库.doc

    青藏高原城市化和生态环境迫切化大屏数据可视化系统

    【作品名称】:青藏高原城市化和生态环境迫切化大屏数据可视化系统 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。

    TCABEE 008-2020 轨道交通车站高效空调系统技术标准.pdf

    TCABEE 008-2020 轨道交通车站高效空调系统技术标准.pdf

    MySQL笔记思维导图

    MySQL笔记思维导图

    Windows 10 Docker 安装教程

    附件是Windows 10 Docker 安装教程, 文件绿色安全,请大家放心下载,仅供交流学习使用,无任何商业目的!

    node-v4.4.1-x86.msi

    Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。

    东北大学信息学院控制与科学博士课程《matlab语言与应用》薛定宇课程作业 chapter1-chapter14 自己做的

    东北大学信息学院控制与科学博士课程《matlab语言与应用》薛定宇课程作业 chapter1-chapter14 自己做的

    azure-ai-services-speech-service(微软语音服务文档)

    azure-ai-services-speech-service(微软语音服务文档)

    数据库课程设计涵盖了从需求分析、概念设计、逻辑设计到物理设计的整个数据库设计流程 为了帮助学生更好地理解和掌握这些内容,课程设计

    数据库课程设计涵盖了从需求分析、概念设计、逻辑设计到物理设计的整个数据库设计流程。为了帮助学生更好地理解和掌握这些内容,课程设计提供了丰富的学习资源。 首先,课程提供了详细的教学课件和PPT,这些资源系统地介绍了数据库设计的基本概念和步骤,帮助学生建立起对数据库设计的整体认识。 其次,课程设计还提供了大量的实践案例和练习题。学生可以通过分析实际案例,了解数据库设计在实际应用中的具体实现方法。同时,练习题可以帮助学生巩固所学知识,提高实际操作能力。 此外,课程设计还鼓励学生利用网络资源进行学习。学生可以通过在线教程、视频系列以及经典的数据库设计书籍等拓展学习视野,深入了解数据库设计的最新技术和方法。 最后,课程设计还强调团队协作和沟通能力的培养。学生需要分组完成设计任务,通过团队合作解决问题,提高协作和沟通能力。 总之,数据库课程设计提供了丰富的学习资源和实践机会,帮助学生全面掌握数据库设计的基本知识和技能。通过这门课程的学习,学生将能够为后续的数据库应用开发和数据管理工作打下坚实的基础。

Global site tag (gtag.js) - Google Analytics