Comments (5)
- A non-template composer.json that downloads just the Yii framework and requested packages and sets up the autoloader and yiic for generating web-apps as per our custom needs?
- Composer driven autoloader for using packages with a default Yii 1.1 generated web-app.
from yiinitializr.
- For that I guess we will have to create something like YiiBoilerplate? Do you think is a good idea not to work with composer.json as Yii2 is about to work heavily with it?
from yiinitializr.
No, definitely composer is the correct way! But I am very confused. I did not expect a tightly coupled framework-application directory structure. I expected more of a "composer dropping packages into app/vendor and adding an auto-loader" sort of thing.
I am confused between composer managing dependencies per app and composer managing everything from framework down to the app. Plus YiiInitializr does a lot of magic! I think I will experiment with composer more first before diving into YiiInitializr.
Regards.
from yiinitializr.
Just a couple of ideas:
- Theming support
- I'd add more permission configuration on folders and files. Currently for a big project we developed using Yii Advanced, we used this script to set permissions across all the project:
#!/bin/bash oIFS=$IFS IFS=$'\n' WEBUSER=$USER WEBSERVERGROUP=www-data echo Assigning owner to User: $WEBUSER - Group: $WEBSERVERGROUP sudo chown -R $WEBUSER:$WEBSERVERGROUP .; echo Changing directory permissions...; sudo find ./ -type d -exec chmod 770 {} \; echo Changing file permissions...; sudo find ./ -type f -exec chmod 640 {} \; echo Changing executable permissions...; sudo find ./ -iname "*.sh" -type f -exec chmod u+x {} \; sudo find ./ -iname "yiic" -type f -exec chmod u+x {} \; sudo find ./ -iname "build" -type f -exec chmod u+x {} \; echo Adding permissions to Runtime and Assets folders sudo find . -iname "assets" -type d -exec chmod 770 {} \; sudo find . -iname "runtime" -type d -exec chmod 770 {} \; echo Adding permissions to Runtime, Assets and Usermedia files sudo find ./backend/www ./frontend/www -iname 'assets' -type d | while read -r i; do find "$i" -type f -exec chmod 770 {} \; done sudo find ./backend ./frontend -iname 'runtime' -type d | while read -r i; do find "$i" -type f -exec chmod 770 {} \; done echo Adding permission to .htaccess sudo find . -iname '.htaccess' -type f -exec chmod 640 {} \; IFS=$oIFS
from yiinitializr.
non interactive deployment ie using Capistrano 3.x
Currently I have modified the Yiinitializr callback to check for an ENV var set by capistrano and so interaction is not required and multiple deployment scenarios work perfectly.
Keep up the good work! Yiinitializr and Yii in general are now my first stop for building apps.
from yiinitializr.
Related Issues (20)
- Some guidance with nginx HOT 1
- Custom application class HOT 5
- rename root breaks ALL paths HOT 1
- Composer update HOT 2
- Shared hosting HOT 4
- Tests integrated in Yiinitializr HOT 2
- Console and SAPI name HOT 1
- other config file (backend env local or frontend env local and etc) does not include HOT 3
- Configuration questions
- autoload.php requiring problem
- Is there a way to change settings.php to other location?
- Gii generator is broken
- Cronjob HOT 1
- [Q] one image folder for frontend and backend
- need help in setting up an app
- using CJSON HOT 3
- Further suggestions for configureability HOT 24
- DEBUG constants doesn't work HOT 2
- Add "flat" template HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yiinitializr.