TYPO3 7.6

Locale Testumgebung mittels Puphpet erstellen

Vagrant installieren

VirtualBox installieren

auf www.puphpet.com eine virtuelle Maschine zusammenstellen

Die Optionen sind wichtig:

packages:
vim , curl , zip

locales:

        default_locale: en_US.UTF-8

        locales:
            - de_DE.UTF-8
            - en_GB.UTF-8
            - en_US.UTF-8

        timezone: Europe/Berlin

ngix:

           server_name: yourdomain.dev
            www_root: /var/www/yourdomain/http

php    modules:

        php:

            - cli
           - soap
            - gd
            - xml
            - intl
            - mcrypt
            - mbstring
            - zip

    ini:

        display_errors: 'On'
        error_reporting: '-1'
        date.timezone: UTC
        allow_url_fopen: 0n
        max_execution_time: '300'
        upload_max_filesize: 128M
        post_max_size: 128M
        max_input_vars: '2500'
        always_populate_raw_post_data: '-1'

xdebug:

        xdebug.max_nesting_level: '400'
        xdebug.idekey: PHPSTORM

ruby:

     gems:

                - deep_merge
                - activesupport
                - vine

Zipfile entpacken und vagrant up und etwas Geduld

 

grunt installieren

 Grunt configuration
## About
This directory manages CSS & JS for frontend usage.It is built using bower and grunt.
## Requirements
* Ruby >= 2.0.0p481
* git bash
* Sass 3.4.15
* npm 2.12.1*
 bower 1.4.1
* grunt_cli 0.1.13


## Install
* RubyDownload from   
* Sassrun Git Bash:Enter Command:
gem install sass
* node.js
https://nodejs.org/en/download/
* npmEnter Command:
npm install --save

download
(https://www.npmjs.com/package/download)
* In Path there should now be something like:

User-Path:C:\Ruby\bin;C:\Users\[User]\AppData\Roaming\npmSystem-Path:C:\Program Files\nodejs\

(Systemsteuerung > System und Sicherheit > System > Erweiterte Systemeinstellungen > Umgebungsvariablen...)

* bower / grunt
Navigate to the grunt directory:/vagrant-Root

mkdir grunt
cd grunt
npm install -g bower

bower update
npm install -g grunt-cli
npm install grunt --save-devor
npm install grunt@0.4.0 --save-dev 
npm install grunt-contrib-jshint --save-dev
npm install grunt-contrib-sass --save-dev
npm install grunt-contrib-uglify --save-dev
npm install grunt-contrib-watch --save-dev

## First usage
1. Login to your terminal
2. Navigate to the grunt directory./allplan-website/grunt
3. Execute *grunt*OR
3. Install Nodejs plugin in PHP Storm
right mouse Click on  /your-website/grunt/Gruntfile.js*

Show Grunt tasks
*Maybe the Grunt settings have to be configured:Node interpreter:

C:\Program Files\nodejs\node.exeGrunt-cli package:
C:\Users\[Username]\AppData\Roaming\npm\node_modules\grunt-cli\

(See more on: https://www.jetbrains.com/webstorm/help/using-grunt-task-runner.html #installingGrunt)
## Gruntfile### Task 'sass'This task compiles the file
*../scss/application.scss*
to
*../css/application.min.css*.


The file *../scss/application.scss* is the main SCSS-file and includes all needed modules.
If you add new modules, include them in this file.

### Task 'uglify'This task compiles JavaScript files into
*../js/application.min.js *.

If you want to add custom scripts, add them to the directory
*../js/src/*.

###
Task 'watch'This task executes the **uglify** or **sass** task depending on wich files you change.
Changes within the directory *../js/src/* and *../scss/* will be detected.

nfs deamon unter Windows installieren

Speed in vagrant box is slow on windows ?

download winnfs daeamon from github ,  put the exe file to a folder that is already set in the path env.

install it :

vagrant plugin install vagrant-winnfsd

edit your config.yaml:

# A private dhcp network is required for NFS to work (on Windows hosts, at least) 

config.vm.network "private_network", type: "dhcp"

restart configuration of your vagrant box:

vagrant provision

and result can be up to 10 times faster:

Image Magick is not installed on ngix ?

vagrant ssh
sudo su

apt-get install imagemagick
Y

# service --status-all
service php5.6-fpm reload

exit

exit