Revision #178 has been created by rackycz on Mar 21, 2020, 11:20:44 AM with the memo:
formatting
« previous (#177) next (#179) »
Changes
Title
unchanged
Yii v2 snippet guide
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,beginner,yii2
Content
changed
[...]
I was suprised that the Yii 2 demo application does not contain some basic functionalities (like login via DB, translations etc) which must be implemented in the most of web projects so I will focus on them. Plus I will talk about GitLab.
If you find any problems in my snippets, let me know, please.
**Prerequisities**
---
Skip this paragraph if you know how to run your Yii demo project...[...]
... but it should work out-of-the-box if you use DB name "yii2basic" which is also used in examples below ...
**Yii demo app + GitLab**
---[...]
Then you can start to modify you project, for example based on this "tutorial".
**Automatical copying from GitLab to FTP**
---
I found these two pages where things are explained: [link](https://www.savjee.be/2019/04/gitlab-ci-deploy-to-ftp-with-lftp/) [link](https://stackoverflow.com/questions/49632077/use-gitlab-pipeline-to-push-data-to-ftpserver) and I just copied something.
You only need to create 1 file in your GitLab repository. It is named .gitlab-ci.yml and it should contain following code:[...]