当前位置:网站首页>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
边栏推荐
- buuctf(pwn)
- What if the desktop computer is not connected to WiFi
- Deep learning - several types of learning
- ASEMI三相整流桥的工作原理
- In Net 6 using dotnet format formatting code
- Records of ros2/dds/qos/ topics
- [Flink] problems and solutions of the continuous growth of checkpoint size in rocksdb incremental mode
- My IC journey - the growth of senior chip design verification engineers - "Hu" said that IC engineers are perfect and advanced
- 哪个编程语言实现hello world最烦琐?
- 【Flink】RocksDB增量模式checkpoint大小持续增长的问题及解决
猜你喜欢
"Daily practice, happy water" 1108 IP address invalidation
【FLink】access closed classloader classloader. check-leaked-classloader
great! Auto like, I use pyautogui!
Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation
「 每日一练,快乐水题 」1108. IP 地址无效化
CTF_ Web: Changan cup-2021 old but a little new & asuka
Simple text analysis of malicious samples - Introduction
高效的NoSQL数据库服务Amozon DynamoDB体验分享
Join() in JSZ
固态硬盘开盘数据恢复的方法
随机推荐
固態硬盤開盤數據恢複的方法
领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!
Machine learning deep learning -- Vectorization
JS, BOM, DOM (VI)
SOC验证环境的启动方式
Cookie & session & JSP (XII)
[untitled]
OLAP analysis engine kylin4.0
OOP stack class template (template +ds)
olap分析引擎——Kylin4.0
"Daily practice, happy water" 1108 IP address invalidation
Cascading deletion of gbase 8s
Classification of gbase 8s locks
30岁了开始自学编程,家里比较困难还来得及吗?
Multithreading structure of gbase 8s
Separation of storage and computing in Dahua cloud native database
buuctf(re)
Triangle class (construction and deconstruction)
Coordinate system left multiply right multiply
WPF 使用 MAUI 的自绘制逻辑