Giter Site home page Giter Site logo

bolt-distribution's Introduction

⚠️ Note - Not the latest version
This is the repository for Bolt 3. Please know that
Bolt 5 has been released. If you are starting a
new project, please use the following:
- Bolt 5 installation instructions
- Bolt 5 Core repository

Bolt

A Sophisticated, lightweight & simple CMS released under the open source MIT-license.

Bolt is a tool for Content Management, which strives to be as simple and straightforward as possible.

It is quick to set up, easy to configure, uses elegant templates, and above all, it's a joy to use!

Bolt is created using modern open source libraries, and is best suited to build sites in HTML5 with modern markup.

Installation

Detailed instructions can be found in the official documentation.

NOTE: Cloning the repository directly is only supported for development of the core of Bolt, see the link above for various supported options to suit your needs.

Reporting issues

See our Contributing to Bolt guide.

Support

Have a question? Want to chat? Run into a problem? See our community page.

Development

The ongoing Bolt development and maintenance takes place under the care of:

Sponsors:


Build Status Scrutinizer Continuous Inspections SensioLabsInsight CII Best Practices Slack

bolt-distribution's People

Contributors

bobdenotter avatar carsonf avatar gwendolenlynch avatar rarila avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pkdevboxy

bolt-distribution's Issues

"Flat" version needs a tweak in index.php.

When packaging the 'flat' version of the distro, we need to change the path in the require in index.php:

$app = require __DIR__ . '/../vendor/bolt/bolt/app/web.php';

to:

$app = require __DIR__ . '/vendor/bolt/bolt/app/web.php';

Should be an easy fix, so i'll self-assign.

Built files are missing the web assets.

After installing the latest built dev setup, with this:

curl -O https://bolt.cm/distribution/bolt-3.3.x-dev.tar.gz
tar -xzf bolt-3.3.x-dev.tar.gz --strip-components=1
php app/nut init

I get a screen like this:

screen shot 2017-01-30 at 20 10 42

Looks like the web assets are missing from the distro.

$ ls -als public/bolt-public/view/css
total 0
0 drwxr-xr-x  2 bob2  staff   68 Jan 29 11:43 .
0 drwxr-xr-x  6 bob2  staff  204 Jan 29 11:43 ..

Same for bolt_public/view/fonts/, bolt_public/view/img/ and bolt_public/view/js/.

When building using package.sh, they're alread not included.

If i manually run php app/nut setup:sync, I get this:

Directory synchronisation encountered problems:
RecursiveDirectoryIterator::__construct(../test/vendor/bolt/boltapp/view/css): failed to open dir: No such file or directory
RecursiveDirectoryIterator::__construct(../test/vendor/bolt/boltapp/view/fonts): failed to open dir: No such file or directory
RecursiveDirectoryIterator::__construct(../test/vendor/bolt/boltapp/view/img): failed to open dir: No such file or directory
RecursiveDirectoryIterator::__construct(../test/vendor/bolt/boltapp/view/js): failed to open dir: No such file or directory

Seems like a missing slash in the middle of boltapp.

Building the "Flat archives" need to be scripted.

Currently, after building a release, I manually build the "flat-structure" files. This should be scripted too.

What I currently do by hand:

  • Go into the zbuild/bolt-3.x.x` folder, and do:
mv public/* public/.htaccess .
rm -rf public
nano .bolt.yml

In .bolt.yml I set:

    web: .
    themebase: theme
    files: files
    view: bolt-public/view
  • then, nano index.php, change the line with the include to:
$app = require __DIR__ . '/vendor/bolt/bolt/app/web.php';

And then to build the archives:

cd ..
tar -czf ../files/bolt-3.2.4-flat-structure.tar.gz bolt-3.2.4
zip -rq --symlinks ../files/bolt-3.2.4-flat-structure.zip bolt-3.2.4
cd ..

After packaging, I'm still left with a bunch of files, i think should be removed.

When I do this:

sh package.sh 5e2a836b783476e38611b22223eb3c9f7c524c49

I get a new build, with some errors while executing:

package.sh: line 75: bolt-git-2015-05-04-5e2a836/app/view/img/*.pxm: No such file or directory
package.sh: line 80: bolt-git-2015-05-04-5e2a836/CodeSniffer/: No such file or directory
package.sh: line 85: bolt-git-2015-05-04-5e2a836/test/: No such file or directory

It includes some files that shouldn't be there. After copying the .tar.gz and unpacking it again:

[bob:~/Sites/test]$ cp ~/Sites/bolt-distribution/files/bolt-git-2015-05-04-5e2a836.tar.gz .
[bob:~/Sites/test]$ tar -xzf bolt-git-2015-05-04-5e2a836.tar.gz --strip-components=1
[bob:~/Sites/test]$ chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/
[bob:~/Sites/test]$ dir
total 22384
    0 drwxr-xr-x  24 bob  staff       816 May  4 16:18 .
    0 drwxr-xr-x  31 bob  staff      1054 May  4 11:57 ..
    8 -rw-r--r--   1 bob  staff      1187 May  4 16:08 .htaccess
    8 -rw-r--r--   1 bob  staff      1739 May  4 16:08 .scrutinizer.yml
    8 -rw-r--r--   1 bob  staff      2101 May  4 16:08 .travis.nginx.conf
   16 -rw-r--r--   1 bob  staff      5996 May  4 16:08 .travis.yml
    8 -rw-r--r--   1 bob  staff      3541 May  4 16:08 README.md
    0 drwxr-xr-x  12 bob  staff       408 May  4 16:08 app
19792 -rw-r--r--   1 bob  staff  10129416 May  4 16:18 bolt-git-2015-05-04-5e2a836.tar.gz
   48 -rw-r--r--   1 bob  staff     24187 May  4 16:08 changelog.md
    8 -rw-r--r--   1 bob  staff       478 May  4 16:08 codeception.yml
    8 -rw-r--r--   1 bob  staff      2676 May  4 16:08 composer.json.dist
  272 -rw-r--r--   1 bob  staff    136789 May  4 16:08 composer.lock.dist
 2160 -rw-r--r--   1 bob  staff   1105399 May  4 16:08 composer.phar
   16 -rw-r--r--   1 bob  staff      5748 May  4 16:08 contributing.md
    0 drwxrwxrwx   2 bob  staff        68 May  4 16:08 extensions
    0 drwxrwxrwx  19 bob  staff       646 May  4 16:08 files
    8 -rw-r--r--   1 bob  staff      1490 May  4 16:08 index.php
    8 -rw-r--r--   1 bob  staff      1182 May  4 16:08 phpunit.xml.dist
    8 -rw-r--r--   1 bob  staff       789 May  4 16:08 serve
    0 drwxr-xr-x  39 bob  staff      1326 May  4 16:08 src
    0 drwxrwxrwx   4 bob  staff       136 May  4 16:08 theme
    0 drwxr-xr-x  32 bob  staff      1088 May  4 16:08 vendor
    8 -rw-r--r--   1 bob  staff      3737 May  4 16:08 web.config
[bob:~/Sites/test]$

Files like composer.phar, .scrutinizer.yml are present, but they shouldn't be. They are listed to be deleted in the package.sh, though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.