mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
[enh] Add doc
This commit is contained in:
parent
b4f3c99c8b
commit
c9ced0e9d7
1 changed files with 57 additions and 2 deletions
59
README.md
59
README.md
|
@ -1,2 +1,57 @@
|
|||
# yunohost-development
|
||||
An environement to develop on YunoHost
|
||||
# ynh-dev, a yunohost dev env
|
||||
This script is a cli to manage a yunohost development environement. With this you can develop on the unstable version of yunohost quickly.
|
||||
|
||||
## Setup
|
||||
Install dependencies
|
||||
```shell
|
||||
# Debian, Ubuntu, Mint
|
||||
sudo apt-get install docker vagrant
|
||||
# Fedora
|
||||
sudo dnf install docker vagrant vagrant-libvirt
|
||||
```
|
||||
|
||||
Next upload ynh-dev script
|
||||
|
||||
```shell
|
||||
wget https://raw.githubusercontent.com/zamentur/yunohost-development/master/ynh-dev
|
||||
chmod u+x ynh-dev
|
||||
```
|
||||
## Usage
|
||||
### Create the environment
|
||||
|
||||
```shell
|
||||
ynh-dev create-env PATH
|
||||
```
|
||||
|
||||
### Run a container
|
||||
```
|
||||
ynh-dev run ynh.local virtualbox testing8
|
||||
```
|
||||
|
||||
### Upgrade the container
|
||||
```
|
||||
ynh-dev upgrade
|
||||
```
|
||||
|
||||
### Deploy your change
|
||||
```
|
||||
ynh-dev deploy
|
||||
```
|
||||
|
||||
### Deploy your change in realtime (each time you saved source code)
|
||||
```
|
||||
ynh-dev watch
|
||||
```
|
||||
## Useful command
|
||||
### Get ip address of your vm
|
||||
```
|
||||
ynh-dev ip
|
||||
```
|
||||
|
||||
### Get ip address of your vm
|
||||
```
|
||||
ynh-dev ip
|
||||
```
|
||||
## More info
|
||||
|
||||
https://yunohost.org/#/dev_fr
|
||||
|
|
Loading…
Add table
Reference in a new issue