当前位置:网站首页>Swift rapid development
Swift rapid development
2022-06-25 04:49:00 【Oglie's magic slippers~】
1.swoft file
https://www.swoft.org/documents/v2/basic-components/aop/
https://www.bookstack.cn/read/Swoft/zh-CN-quickstart-docker-installation.md
2.swoft Environment building
Use docker Image mount swoft
docker run -p 18306:18306 --name swoft swoft/swoft
start-up swoft
docker start swoft
http visit swoft:http:// virtual machine ip: port
example :http://192.168.118.128:18306/
3.swoft Development
Using shortcuts ,swoft After container creation , The project code is in docker Containers swoft in (/var/www/swoft)
For quick development, the code is still here , But we need to make some connections
stay window On the development , Code managed to github, stay swoft In the container git pull Synchronization code
Subsequent operations need to create an empty swoft Warehouse
Implementation steps
Get into swoft Containers
docker exec -it swoft /bin/bash
swoft Containers , install ssh-client Easy to pull code
apt-get update
apt-get install ssh-client
swoft Containers , Generate ssh The key , And bind to your own github account number
ssh-keygen -t rsa -C " mailbox @yeah.net"
vim /root/.ssh/id_rsa.pub
swoft The container pulls the complete project code from the source project (composer install Pull vender It is difficult to , Always fail , Fortunately, the project comes with )
composer install
Go to github Create an empty project
relieve remote origin Source , And connect our own github Empty item
git remote -v
git remote rm origin
git remote add origin < The newly created github Project address >
modify .gitignore, Delete vender Limit , take vender Also upload to your own github project
vim .gitignore
Upload items to your own gitbun
Set according to the prompt config, Configure mailbox user name
git add .
git commit -m"update"
git push origin master
Start using
After the above configuration is completed , Can be in window And other environmental development projects , Submit in swoft In the container git pull debugging
git pull origin master
边栏推荐
- 为什么SQL语句命中索引比不命中索引要快?
- 本轮压力测试下,DeFi协议们表现如何?
- 基于Cortex-M3、M4的精准延时(系统定时器SysTick延时,可用于STM32、ADuCM4050等)
- 台式电脑连不上wifi怎么办
- 电脑的dwg文件怎么打开
- Machine learning deep learning -- Vectorization
- Le chemin de l'apprentissage immutable - - Adieu à la copie traditionnelle
- Mongodb cluster
- Basic introduction of gbase 8s blocking technology
- Introduction to the isolation level of gbase 8s
猜你喜欢
随机推荐
Cannot import name 'escape' from 'jinja2' [solved successfully]
In Net 6 using dotnet format formatting code
JS, BOM, DOM (VI)
Use text analysis to identify the main gender in a text
Vscode 设置clang-format
Multithreading structure of gbase 8s
Why PHP is not safe
Efficient NoSQL database service Amazon dynamodb experience sharing
CTF_ Web: Changan cup-2021 old but a little new & asuka
本轮压力测试下,DeFi协议们表现如何?
计算学生成绩等级(虚函数和多态)
执行SQL响应比较慢,你有哪些排查思路?
OLAP analysis engine kylin4.0
Bingbing's learning notes: implementation of circular queue
【FLink】access closed classloader classloader. check-leaked-classloader
EL & JSTL (XIII)
STM32的DMA双缓冲模式详解
【FLink】access closed classloader classloader.check-leaked-classloader
buuctf(re)
Kotlin compose perfect todo project surface rendering background and shadow









