Difference between pages "Package:Ghost (Blogging Platform)" and "Test"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{Ebuild
[[TestProp::foo]]
|Summary=Ghost allows you to write and publish your own blog, giving you the tools to make it easy and even fun to do.
[[TestProp::bar]]
|CatPkg=www-apps/ghost
[[TestProp::oni]]
|Maintainer=anak1n
<in/>
|Homepage=https://ghost.org
{{#subobject:foo|TestProp=blah}}
}}
{{#subobject:bar|TestProp=blarg}}
{{#subobject:oni|TestProp=bleh}}
{{#subobject:ble|Country=#!/bin/bash
# -*-eselect-*-  vim: ft=eselect
# Copyright (c) 2005-2014 Gentoo Foundation
#
# This file is part of the 'eselect' tools framework.
#
# eselect is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 2 of the License, or (at your option) any later
# version.
#
# eselect is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# eselect.  If not, see <http://www.gnu.org/licenses/>.
 
# Where are our data?
ESELECT_DATA_PATH="/usr/share/eselect"


Ghost is an easy to use, quick, and light blogging platform that uses nodejs and is ready to go in minutes.  You can configure it to do anything from a self hosted blog for yourself, a blog that uses multiple users with their own usernames and profile pages.
# Where are modules installed by default?
ESELECT_DEFAULT_MODULES_PATH="${ESELECT_DATA_PATH}/modules"


To use Ghost in production (as opposed to development mode) you simply first run:
# Look in these places for modules
ESELECT_MODULES_PATH=( \
        "${HOME}/.eselect/modules" \
        "${ESELECT_DEFAULT_MODULES_PATH}" )


{{console|body=
# Look in this place for libraries
###i## emerge ghost
ESELECT_CORE_PATH="${ESELECT_DATA_PATH}/libs"
###i## npm install --production
}}


Then configure your options in {{f|/usr/share/webapps/ghost/config.example.js}} and rename it to {{f|/usr/share/webapps/ghost/config.js}}:
# Look here for the default contents of a module
{{file|name=config.js|lang=javascript|desc=ghost config|body=
ESELECT_DEFAULT_ACTIONS="${ESELECT_CORE_PATH}/default.eselect"
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/


var path = require('path'),
# Our program name and version
    config;
ESELECT_PROGRAM_NAME="eselect"
ESELECT_VERSION="1.4.3"
}}


config = {
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] }}
    // ### Production
{{#ask: [[Category:News]] [[Publication Status::Published]]
    // When running Ghost in the wild, use the production environment
|
    // Configure your URL and mail settings here
| order=descending
    production: {
| sort=Publication Date
        url: 'http://blog.somedomain.com',
| format=feed
        mail: {
| page=full
            transport: 'SMTP',
| title=Funtoo Linux News
            options: {
| description=Latest Funtoo Linux news
                service: 'Gmail',
|type=atom
                auth: {
| limit=20
                    user: 'user@gmail.com',
}}
                    pass: 'password'
                }
            }
        },
        database: {
            client: 'sqlite3',
            connection: {
                filename: path.join(__dirname, '/content/data/ghost.db')
            },
            debug: false
        },


        server: {
{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='amd64-bulldozer']/@builds}}
            // Host to be passed to node's `net.Server#listen()`
;Builds: {{#external_value:builds}}
            host: '0.0.0.0',
            // Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
            port: '2368'
        }
    }
};


// Export config
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
module.exports = config;
<div style="align: center;">
}}  
[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]<br/>
[[Organization:Brownrice Internet|Learn about Funtoo-friendly organization: Brownrice Internet]]</div>
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
{{fullurl:News:The Many Builds of Funtoo Linux}}
{{#widget:AddThis}}


{{note|You don't need to use Gmail as your mail, just an example. E-mail is only used for when you add users to the blog, it sends a notice so they can set up their own username and their own password, or if you forget your password and need to reset.}}
I like the {{f|/etc/make.conf}} file, which can also be referred to as {{f|/etc/portage/make.conf}}. It is a groovy file. Another cool file is {{f|/etc/fstab}}.


After you've completed setting up your {{f|config.js}}, you can start Ghost from:
=== make.conf mentions ===


{{console|body=
{{#ask: [[Mentions file::make.conf]]
###i## npm start --production
| format=category
}}
}}


Once you confirm that it has started, you use the URL and port you provided in your browser: {{c|blog.somedomain.com:2368/ghost/signup}}
{{console|body=
# ##i##bluetoothctl
If you use Gravatar and use the e-mail used for that, it will automatically enable your Gravatar as your users avatar. You can disable this if you'd like by adding the following to your config.js
[##g##NEW##!g##] Controller 00:02:72:C9:62:65 antec [default]
 
##bl##[bluetooth]##!bl###power on
{{file|name=config.js|lang=javascript|desc=ghost config|body=
Changing power on succeeded
privacy: {
##bl##[bluetooth]##!bl### ##i##agent on
    useGravatar: false
Agent registered
}
##bl##[bluetooth]##!bl### ##i##scan on
Discovery started
##bl##[bluetooth]##!bl### ##i##devices
Device 00:1F:20:3D:1E:75 Logitech K760
##bl##[bluetooth]##!bl### ##i##pair 00:1F:20:3D:1E:75
Attempting to pair with 00:1F:20:3D:1E:75
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
##r##[agent]##!r## Passkey: 454358
##r##[agent]##!r## Passkey: ##i##4##!i##54358
##r##[agent]##!r## Passkey: ##i##45##!i##4358
##r##[agent]##!r## Passkey: ##i##454##!i##358
##r##[agent]##!r## Passkey: ##i##4543##!i##58
##r##[agent]##!r## Passkey: ##i##45435##!i##8
##r##[agent]##!r## Passkey: ##i##454358##!i##
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Paired: yes
Pairing successful
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: no
##bl##[bluetooth]##!bl### ##i##connect 00:1F:20:3D:1E:75
Attempting to connect to 00:1F:20:3D:1E:75
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
Connection successful
##bl##[bluetooth]##!bl### ##i##quit
[##r##DEL##!r##] Controller 00:02:72:C9:62:65 antec [default]
#
}}
}}
After this is all done, you can start using your blog. To use it you go to the domain your provided in {{c|config.js}}: {{c|blog.somedomain.com:2368/ghost}} and you will be able to publish, write drafts, and edit any posts.
{{EbuildFooter}}

Revision as of 04:35, February 19, 2015

TestProp::foo TestProp::bar TestProp::oni <in/> {{#subobject:foo|TestProp=blah}} {{#subobject:bar|TestProp=blarg}} {{#subobject:oni|TestProp=bleh}} {{#subobject:ble|Country=#!/bin/bash

  1. -*-eselect-*- vim: ft=eselect
  2. Copyright (c) 2005-2014 Gentoo Foundation
  3. This file is part of the 'eselect' tools framework.
  4. eselect is free software: you can redistribute it and/or modify it under the
  5. terms of the GNU General Public License as published by the Free Software
  6. Foundation, either version 2 of the License, or (at your option) any later
  7. version.
  8. eselect is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  10. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License along with
  12. eselect. If not, see <http://www.gnu.org/licenses/>.
  1. Where are our data?

ESELECT_DATA_PATH="/usr/share/eselect"

  1. Where are modules installed by default?

ESELECT_DEFAULT_MODULES_PATH="${ESELECT_DATA_PATH}/modules"

  1. Look in these places for modules

ESELECT_MODULES_PATH=( \

       "${HOME}/.eselect/modules" \
       "${ESELECT_DEFAULT_MODULES_PATH}" )
  1. Look in this place for libraries

ESELECT_CORE_PATH="${ESELECT_DATA_PATH}/libs"

  1. Look here for the default contents of a module

ESELECT_DEFAULT_ACTIONS="${ESELECT_CORE_PATH}/default.eselect"

  1. Our program name and version

ESELECT_PROGRAM_NAME="eselect" ESELECT_VERSION="1.4.3" }}

{{#ask: -Has subobject::Test }} {{#ask: Publication Status::Published | | order=descending | sort=Publication Date | format=feed | page=full | title=Funtoo Linux News | description=Latest Funtoo Linux news |type=atom | limit=20 }}

Exception parsing XML: String could not be parsed as XML.

Builds

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf

[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]

Learn about Funtoo-friendly organization: Brownrice Internet

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf https://www.funtoo.org/News:The_Many_Builds_of_Funtoo_Linux

I like the /etc/make.conf file, which can also be referred to as /etc/portage/make.conf. It is a groovy file. Another cool file is /etc/fstab.

make.conf mentions

{{#ask: Mentions file::make.conf | format=category }}

root # bluetoothctl 
[NEW] Controller 00:02:72:C9:62:65 antec [default]
root ##bl##[bluetooth]##!bl###power on
Changing power on succeeded
root ##bl##[bluetooth]##!bl### agent on
Agent registered
root ##bl##[bluetooth]##!bl### scan on
Discovery started
root ##bl##[bluetooth]##!bl### devices
Device 00:1F:20:3D:1E:75 Logitech K760
root ##bl##[bluetooth]##!bl### pair 00:1F:20:3D:1E:75
Attempting to pair with 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
[CHG] Device 00:1F:20:3D:1E:75 Paired: yes
Pairing successful
[CHG] Device 00:1F:20:3D:1E:75 Connected: no
root ##bl##[bluetooth]##!bl### connect 00:1F:20:3D:1E:75
Attempting to connect to 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
Connection successful
root ##bl##[bluetooth]##!bl### quit
[DEL] Controller 00:02:72:C9:62:65 antec [default]
root #