Hi, The doc has some typo, updated
Edit app.js. Change **/public** to /dist instead of Edit app.js. Change /publish to /dist regards -- Fred Lin, Mozilla Soft Engineer ----- 原始郵件 ----- 寄件人: [email protected] 收件人: [email protected] 寄件箱: 2013年7 月30日, 星期二 下午 11:07:07 標題: Re: How can I install packaged app from my server ? Le mardi 30 juillet 2013 12:27:21 UTC+2, Fred Lin a écrit : > Hi regivanx, > > > > I've a working template for reference, > > check 'Locally install packaged webapp into real device' section > > https://github.com/gasolin/webapplate/wiki/Development > > > > > > regards > > -- > > Fred > > > > ----- 原始郵件 ----- > > 寄件人: [email protected] > > 收件人: [email protected] > > 寄件箱: 2013年7 月30日, 星期二 下午 5:54:13 > > 標題: How can I install packaged app from my server ? > > > > Hi, > > > > I want to install mortar-app-stub like packaged app from my server for test. > > > > I try to follow Mozilla procedure: > > > > https://developer.mozilla.org/en-US/docs/Web/Apps/Packaged_apps > > > > I use Linux. > > > > $ git clone https://github.com/mozilla/mortar-app-stub myapp # download app > > $ zip -r package.zip myapp # compress > > $ gedit package.manifest install.html & # create Mozilla files, remplace > “<server-ip>” by “localhost” > > $ cp package.zip package.manifest install.html ~/server # copy files to > server root. > > > > I run Firefox OS simulator and go to http://localhost/install.html > > > > Then, I got the error message : “My App install failed” and the folder: > > > > ~/.mozilla/firefox/fggbnctv.default/extensions/[email protected]/profile/webapps/{d864eb8c-fb3f-4116-8040-9161a233a1f4} > > > > contains only the update.webapp file. > > > > Note that I use Apache as a server without special modification. > > _______________________________________________ > > dev-webapps mailing list > > [email protected] > > https://lists.mozilla.org/listinfo/dev-webapps Thank you for your answer. Installation of node.js : https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#debian-lmde $ cd ~/server $ wget https://github.com/gasolin/webapplate/archive/master.zip $ unzip master.zip $ cd webapplate-master/ > open app.js. Change /publish to /dist No “/publish” or “/dist” in app.js. $ node app.js module.js:340 throw err; ^ Error: Cannot find module 'express' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (~/server/webapplate-master/app.js:1:77) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) nothing at localhost:8000... I'm complete beginner with webapp. _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
