Projekat

Općenito

Profil

Akcije

Podrška #19037

Zatvoren

webby, hernad.bring.out.ba

Dodano od Ernad Husremović prije više od 15 godina. Izmjenjeno prije skoro 15 godina.

Status:
Zatvoreno
Prioritet:
Normalan
Odgovorna osoba:
Kategorija:
-
Početak:
05.12.2009
Završetak:
% završeno:

0%

Procjena vremena:


Fajlovi

hernad.tar.gz (474 KB) hernad.tar.gz tekući sadržaj - git trepos Ernad Husremović, 05.12.2009 20:13

Povezani tiketi 1 (0 otvoreno1 zatvoren)

korelira sa developer toolbox - Podrška #16766: blogging with jekyll static blogs generatorZatvorenoErnad Husremović20.03.2009

Akcije
Akcije #1

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work$ git clone git://github.com/TwP/webby.git

bringout@desk-c2:~/devel/work/webby$ sudo gem install bones little-plugger loquacious logging directory_watcher hpricot

Akcije #2

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/bones$ sudo gem install bones-git

Akcije #3

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby$ export PATH=$PATH:/var/lib/gems/1.8/gems/bones-3.1.1/bin

Akcije #4

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby$ sudo apt-get install rubygems

Akcije #5

Izmjenjeno od Ernad Husremović prije više od 15 godina

sudo gem install rake (0.8.7)

bringout@desk-c2:~/devel/work/webby$ export PATH=$PATH:/var/lib/gems/1.8/gems/rake-0.8.7/bin

Akcije #6

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby/blog_1$ sudo gem install RedCloth

Akcije #7

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby/blog_1$ sudo apt-get install graphviz

Akcije #8

Izmjenjeno od Ernad Husremović prije više od 15 godina

latex

bringout@desk-c2:~/devel/work/webby/blog_1$ sudo apt-get install texlive-latex-base

Akcije #9

Izmjenjeno od Ernad Husremović prije više od 15 godina

na silu registrujem tex:

bringout@desk-c2:~/devel/work/webby/blog_1$ ../bin/webby

registrujem graphvizhelper
registrujem TexImgHelper
       update  output/index.html
kpathsea: Running mktextfm ecrm1000
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1000
This is METAFONT, Version 2.71828 (Web2C 7.5.6)

kpathsea: Running mktexmf ecrm1000
! I can't find file `ecrm1000'.
<*> ...ljfour; mag:=1; nonstopmode; input ecrm1000

Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; nonstopmode; input ecrm1000

Transcript written on mfput.log.
grep: ecrm1000.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1000' failed to make ecrm1000.tfm.
kpathsea: Appending font creation commands to missfont.log.
convert: unable to open image `out.pdf': No such file or directory @ blob.c/OpenBlob/2439.
convert: image sequence is required `-clone' @ convert.c/ConvertImageCommand/868


traži mi ovaj latex-ucs

bringout@desk-c2:~/devel/work/webby/blog_1$ sudo apt-get install latex-ucs

Akcije #10

Izmjenjeno od Ernad Husremović prije više od 15 godina

i dalje ne mogu napraviti što trebam:

bringout@desk-c2:~/devel/work/webby/blog_1/tex2img_hxIZGw$ vi out.log

! LaTeX Error: File `wasysym.sty' not found.

sudo apt-get install texlive-latex-extra

ali ista greška

Akcije #11

Izmjenjeno od Ernad Husremović prije više od 15 godina

ovo je rješilo stvar
bringout@desk-c2:~/devel/work/webby/$ sudo apt-get install texlive-fonts-recommended

bringout@desk-c2:~/devel/work/webby/leshill.github.com/_webby$ sudo apt-get install libcoderay-ruby

sudo gem install haml
Akcije #13

Izmjenjeno od Ernad Husremović prije više od 15 godina

test apache na vmware test box desk-1004-1

bringout@desk-1004-1:~$ sudo apt-get install apache2

[sudo] password for bringout: 
Sorry, try again.
[sudo] password for bringout: 
Čitam spiskove paketa... Done
Gradim stablo zavisnosti       
Reading state information... Done
Slijedeći dodatni paketi će biti instalirani:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libdb4.8
Predloženi paketi:
  apache2-doc apache2-suexec apache2-suexec-custom
Slijedeći NOVI paketi će biti instalirani:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libdb4.8
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 2669kB of archives.
After this operation, 8131kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.sigma-com.net lucid/main libdb4.8 4.8.24-1ubuntu1 [674kB]
Get:2 http://archive.sigma-com.net lucid/main libapr1 1.3.8-1 [116kB]
Get:3 http://archive.sigma-com.net lucid/main libaprutil1 1.3.9+dfsg-3 [85,2kB]
Get:4 http://archive.sigma-com.net lucid/main libaprutil1-dbd-sqlite3 1.3.9+dfsg-3 [27,0kB]
Get:5 http://archive.sigma-com.net lucid/main libaprutil1-ldap 1.3.9+dfsg-3 [25,0kB]
Get:6 http://archive.sigma-com.net lucid/main apache2.2-bin 2.2.14-2ubuntu1 [1297kB]
Get:7 http://archive.sigma-com.net lucid/main apache2-utils 2.2.14-2ubuntu1 [154kB]
Get:8 http://archive.sigma-com.net lucid/main apache2.2-common 2.2.14-2ubuntu1 [287kB]
Get:9 http://archive.sigma-com.net lucid/main apache2-mpm-worker 2.2.14-2ubuntu1 [2356B]
Get:10 http://archive.sigma-com.net lucid/main apache2 2.2.14-2ubuntu1 [1468B] 
Fetched 2669kB in 9s (269kB/s)                                                 
Selecting previously deselected package libdb4.8.
(Reading database ... 113611 files and directories currently installed.)
Unpacking libdb4.8 (from .../libdb4.8_4.8.24-1ubuntu1_i386.deb) ...
Selecting previously deselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.3.8-1_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-3_i386.deb) ...
Selecting previously deselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-3_i386.deb) ...
Selecting previously deselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.9+dfsg-3_i386.deb) ...
Selecting previously deselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.14-2ubuntu1_i386.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.14-2ubuntu1_i386.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.14-2ubuntu1_i386.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.14-2ubuntu1_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.14-2ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libdb4.8 (4.8.24-1ubuntu1) ...

Setting up libapr1 (1.3.8-1) ...

Setting up libaprutil1 (1.3.9+dfsg-3) ...

Setting up libaprutil1-dbd-sqlite3 (1.3.9+dfsg-3) ...
Setting up libaprutil1-ldap (1.3.9+dfsg-3) ...
Setting up apache2.2-bin (2.2.14-2ubuntu1) ...
Setting up apache2-utils (2.2.14-2ubuntu1) ...
Setting up apache2.2-common (2.2.14-2ubuntu1) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.

Setting up apache2-mpm-worker (2.2.14-2ubuntu1) ...
 * Starting web server apache2                                           [ OK ] 

Setting up apache2 (2.2.14-2ubuntu1) ...

Akcije #14

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby/blog_1$ ~/bin/ssh-keyput.sh

Akcije #15

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby/blog_1/output$ rsync -avz . :/var/www

i http://192.168.45.142/ daje mi web stranu

Akcije #16

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby/blog_1$ cat Sitefile


task :default => :build

SITE.user='root'
SITE.host='192.168.45.142'
SITE.remote_dir='/var/www'

desc 'deploy the site to the webserver'
task :deploy => [:build, 'deploy:rsync']

# EOF

Akcije #17

Izmjenjeno od Ernad Husremović prije više od 15 godina

webby hernad blog

bringout@desk-c2:~/devel/work/webby$ webby-gen blog hernad

Akcije #18

Izmjenjeno od Ernad Husremović prije više od 15 godina

proxy.bring.out.ba

  server {
    server_name  hernad.bring.out.ba;

    access_log      /var/log/nginx/hernad.bring.out.ba.access.log;
    error_log      /var/log/nginx/hernad.bring.out.ba.error.log;

    location / {
      client_max_body_size 500m;
      client_body_buffer_size 10m;
      include /opt/conf/nginx_proxy.conf;
      proxy_pass http://upstream_hernad;
    }

  }

  upstream upstream_hernad {
    server 192.168.45.142;
  }

Akcije #19

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@ns-lan:~# tail /etc/bind/db.bring.out.ba

hernad.bring.out.ba IN CNAME proxy

Akcije #20

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@proxy:/etc/init.d# ./nginx reload

Reloading nginx configuration: nginx.

Akcije #21

Izmjenjeno od Ernad Husremović prije više od 15 godina

  • Naslov promijenjeno iz webby u webby, hernad.bring.out.ba
Akcije #22

Izmjenjeno od Ernad Husremović prije više od 15 godina

bringout@desk-c2:~/devel/work/webby/hernad$ ../bin/webby blog:post hello_world

[16:42:35]  INFO: creating content/blog/2009/index.txt
[16:42:35]  INFO: creating content/blog/2009/12/index.txt
[16:42:35]  INFO: creating content/blog/2009/12/05/hello-world.txt

bringout@desk-c2:~/devel/work/webby/hernad$ ../bin/webby create:atom_feed blogs/rss

Akcije #29

Izmjenjeno od Ernad Husremović prije više od 15 godina

... Build some sort of commenting engine yourself.

Akcije #30

Izmjenjeno od Ernad Husremović prije više od 15 godina

typo blog uzeti stare postove

bringout@desk-c2:~/devel/git/upstream/typo$ sudo rake gems:install

sudo gem install sqlite3

Akcije #31

Izmjenjeno od Ernad Husremović prije više od 15 godina

instalirao sqlite3 gem

ali treba mi sqlite3-ruby

bringout@desk-c2:~/devel/git/upstream/typo$ sudo gem uninstall sqlite3
Successfully uninstalled sqlite3-0.0.3

bringout@desk-c2:~/devel/git/upstream/typo$ sudo apt-get install libsqlite3-dev

bringout@desk-c2:~/devel/git/upstream/typo$ sudo gem install sqlite3-ruby

Akcije #32

Izmjenjeno od Ernad Husremović prije više od 15 godina

rake db:migrate

script/server

 Login: admin

Password: OQwREPz

Akcije #33

Izmjenjeno od Ernad Husremović prije više od 15 godina

http://snippets.dzone.com/posts/show/4326

#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'environment'

require 'application'

# we need a controller to generate html output
class FakeController < ApplicationController
  include ActionView::Helpers::TextHelper
  include ActionView::Helpers::TagHelper
end
fake_controller = FakeController.new

articles = Article.find(:all)

xml = Builder::XmlMarkup.new(:target => STDOUT, :indent => 2)

xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8" 
xml.rss 'version' => "2.0",
        'xmlns:content' => "http://purl.org/rss/1.0/modules/content/",
        'xmlns:wfw' => "http://wellformedweb.org/CommentAPI/",
        'xmlns:dc' => "http://purl.org/dc/elements/1.1/",
        'xmlns:wp' => "http://wordpress.org/export/1.0/" do
  xml.channel do
    xml.title "The Robot Co-op" 
    xml.link "http://www.robotcoop.com" 
    xml.language "en-us" 
    xml.ttl "40" 
    xml.description "Robot coop blog" 

    articles.each do |a|
        xml.item do
          xml.title a.title
          xml.content(:encoded) { |x| x << a.html(fake_controller, :all) }
          xml.pubDate a.published_at.rfc2822
          xml.guid "urn:uuid:{a.guid}", "isPermaLink" => "false" 
          author = a.user.name rescue a.author
          xml.author author
          xml.dc :creator, author
          for category in a.categories
            xml.category category.name
          end
          for tag in a.tags
            xml.category tag.display_name
          end
          xml.wp :post_id, a.id
          xml.wp :post_date, a.published_at.strftime("%Y-%m-%d %H:%M:%S")
          xml.wp :comment_status, 'closed'
          xml.wp :ping_status, 'closed'
          xml.wp :post_name, a.permalink
          xml.wp :status, 'publish'
          xml.wp :post_parent, '0'
          xml.wp :post_type, 'post'
          for comment in a.comments
            xml.wp(:comment) do
              xml.wp :comment_id, comment.id
              xml.wp :comment_author, comment.author
              xml.wp :comment_author_email, comment.email
              xml.wp :comment_author_url, comment.url
              xml.wp :comment_author_IP, comment.ip
              xml.wp :comment_date, comment.published_at.strftime("%Y-%m-%d %H:%M:%S")
              xml.wp(:comment_content) { |x| x << comment.body }
              xml.wp :comment_approved, '1'
              xml.wp :comment_parent, '0'
            end
          end
       end
    end
  end
end
Akcije #34

Izmjenjeno od Ernad Husremović prije više od 15 godina

disqus export

<?xml version="1.0" encoding="utf-8"?>
<articles>
  <article>
    <url>http://hernad.bring.out.ba/blog/2009/12/05/hello-world.html</url>
    <comments>
      <comment>
        <name>hernad</name>
        <email>hernad@bring.out.ba</email>
        <url>http://hernad.bring.out.ba</url>
        <ip_address>89.146.133.223</ip_address>
        <message>test komentar</message>
        <date>Sat, 05 Dec 2009 14:00:24 -0000</date>
        <points>1</points>
      </comment>
    </comments>
  </article>
</articles>
Akcije #36

Izmjenjeno od Ernad Husremović prije skoro 15 godina

  • Status promijenjeno iz Dodijeljeno u Zatvoreno
Akcije

Također dostupno kao Atom PDF