Basic Application Template for Rock Framework
1.1K
From the Command Line:
composer require romeoz/rock-app-basic:*
In your composer.json:
{
"require": {
"romeoz/rock-app-basic": "*"
}
}
If you want to create tables Users and RBAC, then run /path/to/apps/common/migrations/bootstrap.php.
####1. Docker + Ansible
docker run -d -p 8080:80 romeoz/rock-app-basic####2. VirtualBox + Vagrant + Ansible
composer create-project --prefer-dist romeoz/rock-app-basic:*vagrant plugin install vagrant-hostsupdater vagrant-vbguest vagrant-cachiervagrant upWork/editing the project can be done via ssh:
vagrant ssh
cd /var/www/rock-basic
####Out of the box:
If you need to use 32 bit of Ubuntu, then uncomment
config.vm.box_urlthe appropriate version in the file/path/to/Vagrantfile.
For a single entry point.
####Apache
Security via "white list":
RewriteCond %{REQUEST_URI} ^\/(?!index\.php|robots\.txt|500\.html|favicon\.ico||assets\b\/.+\.(?:js|ts|css|ico|xml|swf|flv|pdf|xls|htc|gif|jpg|png|jpeg)$).*$ [NC]
RewriteRule ^.*$ index.php [L]
####Nginx
Security via "white list":
location ~ ^\/(?!index\.php|robots\.txt|favicon\.ico|500\.html|assets\b\/.+\.(?:js|ts|css|ico|xml|swf|flv|pdf|xls|htc|gif|jpg|png|jpeg)$).*$
{
rewrite ^.*$ /index.php;
}
or optimal version (recommended Igor Sysoev)
Basic Application for Rock Framework is open-sourced software licensed under the MIT license.
Content type
Image
Digest
sha256:a36630515…
Size
292.2 MB
Last updated
about 11 years ago
docker pull romeoz/rock-app-basic