Girish Ramakrishnan 1c733b7fbb Do not override PENDING states in db
The apphealthtask basically keep the database and the docker app
state in sync. But it should not overwrite any of the *_PENDING_*
commands which are commands from the REST API to the apptasj.
2014-08-24 16:37:46 -07:00
2013-10-12 09:56:21 -07:00
2014-08-24 13:11:54 -07:00
2014-08-24 16:37:46 -07:00
2014-07-02 11:38:48 -07:00
2014-08-06 12:51:38 -07:00
2014-08-24 13:01:43 -07:00
2014-08-19 18:43:49 -07:00
2014-08-19 18:43:49 -07:00
2014-08-24 01:58:03 -07:00

The Box

Development setup

  • sudo adduser yellowtent ** This dummy user is required for supervisor 'box' configs

  • rmappdir.sh should be callable without a password ** Add a file called /etc/sudoers.d/yellowtent with the following contents: Defaults!/home/girish/yellowtent/box/src/rmappdir.sh env_keep=HOME girish ALL = (ALL) NOPASSWD: /home/girish/yellowtent/box/src/rmappdir.sh Defaults!/home/girish/yellowtent/box/src/reloadnginx.sh env_keep=HOME girish ALL = (ALL) NOPASSWD: /home/girish/yellowtent/box/src/reloadnginx.sh Defaults!/Users/girishra/research/yellowtent/box/src/backup.sh env_keep=HOME girishra ALL = (ALL) NOPASSWD: /Users/girishra/research/yellowtent/box/src/backup.sh

    (replace the username and path to rmappdir.sh to match your environment)

    You might have to clear the sudo cache using sudo -k.

** Verify using sudo src/rmappdir.sh --check. This should print 'OK' ** Verify using sudo src/reloadnginx.sh --check. This should print 'OK' ** Verify using sudo src/backup.sh --check. This should print 'OK'

** Add admin-localhost as 127.0.0.1 in /etc/hosts ** All apps will be installed as hypened-subdomains of localhost. You should add hyphened-subdomains of your apps into /etc/hosts

Running

  • ./run.sh - this starts up nginx to serve up the webadmin ** Navigate to https://localhost

  • DEBUG=box:* ./app.js - this the main box code ** NODE_ENV is set to production by default

Deployment setup

Creating a box image involves the following steps:

S
Description
Cloudron Box
Readme 47 MiB
Languages
JavaScript 72.6%
Vue 22.3%
Shell 3.1%
HTML 1.1%
EJS 0.7%
Other 0.2%