Guest User

ghost config.js

a guest
May 29th, 2016
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // # Ghost Configuration
  2. // Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments).
  3.  
  4. // Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/
  5.  
  6. var path = require('path'),
  7.     config;
  8.  
  9. config = {
  10.     // ### Production
  11.     // When running Ghost in the wild, use the production environment.
  12.     // Configure your URL and mail settings here
  13.     production: {
  14.         url: 'http://foobar.com/journal',
  15.         mail: {
  16.     transport: 'SMTP',
  17.     from: '"x" <[email protected]>',
  18.     options: {
  19.         service: 'xxxxx',
  20.         auth: {
  21.             user: '[email protected]',
  22.             pass: 'xxxxxxxx'
  23.             }
  24.         }
  25.     },
  26.         database: {
  27.             client: 'sqlite3',
  28.             connection: {
  29.                 filename: path.join(__dirname, '/content/data/ghost.db')
  30.             },
  31.             debug: false
  32.         },
  33.  
  34.         server: {
  35.             host: '0.0.0.0',
  36.             port: '2368'
  37.         }
  38.     },
  39.  
  40.     // ### Development **(default)**
  41.     development: {
  42.         // The url to use when providing links to the site, E.g. in RSS and email.
  43.         // Change this to your Ghost blog's published URL.
  44.         url: 'http://localhost:2368',
  45.  
  46.         // Example mail config
  47.         // Visit http://support.ghost.org/mail for instructions
  48.         // ```
  49.         //  mail: {
  50.         //      transport: 'SMTP',
  51.         //      options: {
  52.         //          service: 'Mailgun',
  53.         //          auth: {
  54.         //              user: '', // mailgun username
  55.         //              pass: ''  // mailgun password
  56.         //          }
  57.         //      }
  58.         //  },
  59.         // ```
  60.  
  61.         // #### Database
  62.         // Ghost supports sqlite3 (default), MySQL & PostgreSQL
  63.         database: {
  64.             client: 'sqlite3',
  65.             connection: {
  66.                 filename: path.join(__dirname, '/content/data/ghost-dev.db')
  67.             },
  68.             debug: false
  69.         },
  70.         // #### Server
  71.         // Can be host & port (default), or socket
  72.         server: {
  73.             // Host to be passed to node's `net.Server#listen()`
  74.             host: '127.0.0.1',
  75.             // Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
  76.             port: '2368'
  77.         },
  78.         // #### Paths
  79.         // Specify where your content directory lives
  80.         paths: {
  81.             contentPath: path.join(__dirname, '/content/')
  82.         }
  83.     },
  84.  
  85.     // **Developers only need to edit below here**
  86.  
  87.     // ### Testing
  88.     // Used when developing Ghost to run tests and check the health of Ghost
  89.     // Uses a different port number
  90.     testing: {
  91.         url: 'http://127.0.0.1:2369',
  92.         database: {
  93.             client: 'sqlite3',
  94.             connection: {
  95.                 filename: path.join(__dirname, '/content/data/ghost-test.db')
  96.             },
  97.             pool: {
  98.                 afterCreate: function (conn, done) {
  99.                     conn.run('PRAGMA synchronous=OFF;' +
  100.                     'PRAGMA journal_mode=MEMORY;' +
  101.                     'PRAGMA locking_mode=EXCLUSIVE;' +
  102.                     'BEGIN EXCLUSIVE; COMMIT;', done);
  103.                 }
  104.             }
  105.         },
  106.         server: {
  107.             host: '127.0.0.1',
  108.             port: '2369'
  109.         },
  110.         logging: false
  111.     },
  112.  
  113.     // ### Testing MySQL
  114.     // Used by Travis - Automated testing run through GitHub
  115.     'testing-mysql': {
  116.         url: 'http://127.0.0.1:2369',
  117.         database: {
  118.             client: 'mysql',
  119.             connection: {
  120.                 host     : '127.0.0.1',
  121.                 user     : 'root',
  122.                 password : '',
  123.                 database : 'ghost_testing',
  124.                 charset  : 'utf8'
  125.             }
  126.         },
  127.         server: {
  128.             host: '127.0.0.1',
  129.             port: '2369'
  130.         },
  131.         logging: false
  132.     },
  133.  
  134.     // ### Testing pg
  135.     // Used by Travis - Automated testing run through GitHub
  136.     'testing-pg': {
  137.         url: 'http://127.0.0.1:2369',
  138.         database: {
  139.             client: 'pg',
  140.             connection: {
  141.                 host     : '127.0.0.1',
  142.                 user     : 'postgres',
  143.                 password : '',
  144.                 database : 'ghost_testing',
  145.                 charset  : 'utf8'
  146.             }
  147.         },
  148.         server: {
  149.             host: '127.0.0.1',
  150.             port: '2369'
  151.         },
  152.         logging: false
  153.     }
  154. };
  155.  
  156. module.exports = config;
Add Comment
Please, Sign In to add comment