Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this kit with only one entry point? #653

Open
kwazaro opened this issue Dec 20, 2018 · 4 comments
Open

How to use this kit with only one entry point? #653

kwazaro opened this issue Dec 20, 2018 · 4 comments
Labels

Comments

@kwazaro
Copy link

kwazaro commented Dec 20, 2018

What should be the folder structure for projects, which have only one entry point for web and there is not possible to change server configs? How to install this kit in such environment, where there is only one public folder for web, like /webhosting/account/project.com/www. Project files can be stored under /webhosting/account/project.com. It should be like Yii2 App Basic structure, but this starter kit is very complicated and has separated applications (api, backend, frontend).
Maybe there are alternative setups/templates or other starter kits, which implements Yii2 App Basic structure with one public_html folder?

@XzAeRo XzAeRo added the question label Jan 7, 2019
@XzAeRo
Copy link
Member

XzAeRo commented Jan 7, 2019

You can always use the single domain installation instructions, which is done considering a Nginx server.

In most cases this servers are built with Apache, so the Nginx example won't work. But, there's an extensive example on the Yii2 forums: https://www.yiiframework.com/wiki/799/yii2-app-advanced-on-single-domain-apache-nginx about the process for a similar application on Apache/Nginx.

@kwazaro
Copy link
Author

kwazaro commented Jan 7, 2019

This starter kit causes errors when installing in single domain mode (assets problems, storage paths erc.). Instructions ate not complete/clear. The Yii2 advanced project template structure is very specific and complicated for implementing on most of environments., it is outdated and should be abandoned in favour of more clear app structure. It would be nice to have this starter kit more flexible, because installing it on single domain mode is not suitable, because of hardcoded paths or folder structure.

@XzAeRo
Copy link
Member

XzAeRo commented Jan 22, 2019

So, what do you suggest? To improve the project structure? the docs for single domain installation?

@kwazaro
Copy link
Author

kwazaro commented Jan 24, 2019

Current docs really not full and I think it will be too complicated to use this application in "Yii2-app-basic"-way (with one entry script for web application). I have tried to install this kit in one-domain environment (folowing the docs) and got fail with a lot of errors. Maybe, it would be nice to create separate repo for this starter kit, or split branches for Advanced template and Basic template structure?

@XzAeRo XzAeRo mentioned this issue Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants