Changes

From Amahi Wiki
Jump to: navigation, search
**Ensure you replace appname accordingly and the date can be changed providing you follow the format. If you changed the .conf file name, ensure it matches as well.
**To do a quick check, you can do the following for each table:
<blockquote>{{code|echo "select max(id) from `dns_aliases`" <nowiki>|</nowiki> mysql -uroot -phda hda_productionecho "select max(id) from `webapps`" <nowiki>|</nowiki> mysql -uroot -phda hda_production}}</blockquote>
:Once you have chosen the id number, execute the following
<blockquote>{{code|echo "INSERT INTO `dns_aliases` (`id`, `name`, `address`) VALUES(99, 'appname', '')" <nowiki>|</nowiki> mysql -uroot -phda hda_productionecho "INSERT INTO `webapps` (`id`, `name`, `path`, `kind`, `aliases`, `fname`, `deletable`, `login_required`, `dns_alias_id`, `custom_options`, `created_at`, `updated_at`) VALUES(99, 'appname', '/var/hda/web-apps/appname', '', '', '9999-appname.conf', 0, 0, 99, NULL, '2013-11-17 12:00:00', '2013-11-17 12:00:00')" <nowiki>|</nowiki> mysql -uroot -phda hda_production}}</blockquote>
* Create a test file
<blockquote>{{code|vi /var/hda/web-apps/appname/html/index.html}}</blockquote>
12,424

edits