Coder Social home page Coder Social logo

my_webapp_ynh's Introduction

Custom Webapp

Empty application with SFTP access to the Web directory.

Overview

This application allows you to easily install a custom Web application, providing files access with SFTP. It can also create a MySQL database - which will be backed up and restored with your application. The connection details will be stored in the file db_accesss.txt located in the root directory.

Once installed, go to the chosen URL to know the user, domain and port you will have to use for the SFTP access - the password is one you give 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 custom Web application inside.

Upgrade

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.

Save your files and the database

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.

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 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).

Restore your custom Webapp

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.

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.

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 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).

## Links

YunoHost: https://yunohost.org/

my_webapp_ynh's People

Contributors

jeromelebleu avatar julienmalik avatar kemenaran avatar kloadut avatar m5oul avatar maniackcrudelis avatar opi avatar psycojoker avatar taziden avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.