|
|
@ -1,7 +1,10 @@ |
|
|
Custom Webapp |
|
|
|
|
|
------------- |
|
|
|
|
|
|
|
|
# Custom Webapp for YunoHost |
|
|
|
|
|
|
|
|
Empty application with SFTP access to the Web directory. |
|
|
|
|
|
|
|
|
[](https://dash.yunohost.org/appci/app/my_webapp) |
|
|
|
|
|
[](https://install-app.yunohost.org/?app=my_webapp) |
|
|
|
|
|
|
|
|
|
|
|
> *This package allow you to install Custom Webapp quickly and simply on a YunoHost server. |
|
|
|
|
|
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.* |
|
|
|
|
|
|
|
|
## Overview |
|
|
## Overview |
|
|
|
|
|
|
|
|
@ -17,49 +20,54 @@ at the installation. Under the Web directory, you will see a `www` folder |
|
|
which is the public and served one. You can put all the files of your |
|
|
which is the public and served one. You can put all the files of your |
|
|
custom Web application inside. |
|
|
custom Web application inside. |
|
|
|
|
|
|
|
|
## Upgrade |
|
|
|
|
|
|
|
|
**Shipped version:** 1.0 |
|
|
|
|
|
|
|
|
|
|
|
## Screenshots |
|
|
|
|
|
|
|
|
|
|
|
## Demo |
|
|
|
|
|
|
|
|
|
|
|
## Configuration |
|
|
|
|
|
|
|
|
Due to the SFTP access change, the upgrade can not be done from the last |
|
|
|
|
|
`my_webapp` application - provided with YunoHost 2.2. You will have to remove |
|
|
|
|
|
it first and install this new one, taking care of migrating your data. |
|
|
|
|
|
|
|
|
## Documentation |
|
|
|
|
|
|
|
|
### Save your files and the database |
|
|
|
|
|
|
|
|
* YunoHost documentation: https://github.com/YunoHost/doc/blob/master/app_my_webapp.md |
|
|
|
|
|
|
|
|
You will have to save the content of the `/var/www/my_webapp/files` |
|
|
|
|
|
directory, either from the Web admin interface provided by the old app or |
|
|
|
|
|
connecting to your server using SSH - or SFTP as `admin`. |
|
|
|
|
|
|
|
|
## YunoHost specific features |
|
|
|
|
|
|
|
|
If you've created a MySQL database, you can also migrate it since the new |
|
|
|
|
|
version allows to manage it for you. To create a dump, you could either use |
|
|
|
|
|
[phpMyAdmin](https://github.com/YunoHost-Apps/phpmyadmin_ynh) or connect to |
|
|
|
|
|
your server and execute: |
|
|
|
|
|
`mysqldump -u root -p$(cat /etc/yunohost/mysql --no-create-db "$dbname" > ./dump.sql` |
|
|
|
|
|
(do not forget to replace `$dbname` by your database name). |
|
|
|
|
|
|
|
|
#### Multi-users support |
|
|
|
|
|
|
|
|
### Restore your custom Webapp |
|
|
|
|
|
|
|
|
#### Supported architectures |
|
|
|
|
|
|
|
|
When you've taken care of saving your files - and optionally your database, |
|
|
|
|
|
you can remove the app and install this new one. You can set the same |
|
|
|
|
|
settings as the previous installation. |
|
|
|
|
|
|
|
|
* x86-64b - [](https://ci-apps.yunohost.org/ci/apps/my_webapp/) |
|
|
|
|
|
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/my_webapp/) |
|
|
|
|
|
* Jessie x86-64b - [](https://ci-stretch.nohost.me/ci/apps/my_webapp/) |
|
|
|
|
|
|
|
|
To restore your files, connect to the Web directory using the SFTP account - as |
|
|
|
|
|
described at the installation path - and put everything into the `www` directory. |
|
|
|
|
|
|
|
|
## Limitations |
|
|
|
|
|
|
|
|
If you have chosen to migrate your database too, open the file `db_access.txt` |
|
|
|
|
|
to know the new database, user and password you will have to set in your app |
|
|
|
|
|
configuration. You can restore the dump you've created earlier either using |
|
|
|
|
|
[phpMyAdmin](https://github.com/YunoHost-Apps/phpmyadmin_ynh) or connect to |
|
|
|
|
|
your server and execute: |
|
|
|
|
|
`mysql -u "$dbuser" -p"$dbpass" "$dbname" < ./dump.sql` |
|
|
|
|
|
(do not forget to replace `$dbuser`, `$dbpass` and `$dbname` with the values |
|
|
|
|
|
given in the file). |
|
|
|
|
|
|
|
|
## Additional information |
|
|
|
|
|
|
|
|
### SFTP port ### |
|
|
|
|
|
|
|
|
#### SFTP port |
|
|
|
|
|
|
|
|
You may have change the SSH port as described |
|
|
You may have change the SSH port as described |
|
|
[here (section "Modifier le port SSH"](https://yunohost.org/#/security_fr) ; |
|
|
[here (section "Modifier le port SSH"](https://yunohost.org/#/security_fr) ; |
|
|
then you should use this port to update your website with SFTP. |
|
|
then you should use this port to update your website with SFTP. |
|
|
|
|
|
|
|
|
## Links |
|
|
|
|
|
|
|
|
## Links |
|
|
|
|
|
|
|
|
|
|
|
* Report a bug: https://github.com/YunoHost-Apps/my_webapp_ynh/issues |
|
|
|
|
|
* YunoHost website: https://yunohost.org/ |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
Developers info |
|
|
|
|
|
---------------- |
|
|
|
|
|
|
|
|
|
|
|
**Only if you want to use a testing branch for coding, instead of merging directly into master.** |
|
|
|
|
|
Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/my_webapp_ynh/tree/testing). |
|
|
|
|
|
|
|
|
**YunoHost**: https://yunohost.org/ |
|
|
|
|
|
|
|
|
To try the testing branch, please proceed like that. |
|
|
|
|
|
``` |
|
|
|
|
|
sudo yunohost app install https://github.com/YunoHost-Apps/my_webapp_ynh/tree/testing --debug |
|
|
|
|
|
or |
|
|
|
|
|
sudo yunohost app upgrade my_webapp -u https://github.com/YunoHost-Apps/my_webapp_ynh/tree/testing --debug |
|
|
|
|
|
``` |