Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

This forum contains topics that were moved from Get Satisfaction
Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Andy Parker »

Hi Team,

I've exported my Ionic4 app and uploaded it to my web hosting, but unlike IONIC1 it does not appear to work.

Is there a trick to getting Appery exports to work ?

If I try locally on my laptop using the exported code, I can't get the app to run,

Can you help here please?
I've been so busy rebuilding the app in Ionic 4 from my Ionic 1 build as per your guidance (i.e. Ionic 1 to be deprecated next year) and am now horrified it doesn't work.

I've seen guides for Ionic4 on Youtube mentioning the www folder, but there is no such folder in the Appery version.....

HELP!!!! please....

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Evgene Karachevtsev »

Hello Andy,

Could you please specify what do you do with these files and what exactly doesn't work?

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Andy Parker »

Hi,

I upload the exported files to my website, as the app is not written as a mobile app, it's effectively a Web site.
I've noticed that there is no www folder in the source.
Does this only get built when you compile the app for an apk or ios?
With ionic1 I can just take the exported js/css/html and use that as the website code.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Andy Parker »

Any news on this please?

Basically, I need to be able to export this JS/CSS etc and upload to a web site urgently.

Just to try to give more info;
With IONIC1, I simply exported the JS/CSS using the export button, and then copied all of the files from the ZIP to the inetpub/wwwroot folder.
The index.html file would then present the app from the webserver as expected.

With IONIC4, this doesn't work any longer, as the index.html file is as good as empty, there is none of the app detail in it.....

Can you help please?
Many thanks

Serhii Kulibaba
Posts: 136
Joined: Tue Aug 27, 2013 1:47 pm

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Serhii Kulibaba »

Hello Andy,

You are right, it exports sources of your project. You can build it by yourself to get HTML/JS/CSS files. Please see Ionic documentation page how to do it: https://ionicframework.com/docs/cli/c...

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Andy Parker »

So Appery no longer create the HTML files needed for web deployment?

This is a major step backwards.

I've created a huge multipage CRM website for a client using Appery in IONIC1, and was happily exporting the JS/CSS/HTML and uploading to the web.

You then issued a notice of deprecation for IONIC1, so I have started the huge job of totally re-writing in IONIC4.

Now you say I have to manually create the web deployment?

What are the chances that Appery can do this when exporting the app as JS/CSS/HTML as they did with IONIC1?

You must do this at some stage to get it to run in the test environment?

majorly disappointed.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Andy Parker »

So, for anyone wanting to use Appery.io IONIC4 environment for Web apps, here's what you need to do:

1. Follow this YouTube video to install IONIC4 etc
2. Create an IONIC account (type ionic signup at a windows cmd prompt)
3. Export your app as JS/CSS/HTML and extract the downloaded ZIP to a folder
4. Login to IONIC (type ionic login)
5. In a command prompt, CD into that folder and type:
ionic build --prod
or for testing, just
ionic build
6. Once completed, copy the contents of the www folder to your website.
voila.

Serhii Kulibaba
Posts: 136
Joined: Tue Aug 27, 2013 1:47 pm

Exported HTML/JS/CSS Ionic 4 Doesn't Work in Website

Post by Serhii Kulibaba »

Please change the password in your certificate, which is used to build Android apps. It should not start from a space or tab symbol

Post Reply