Urigo / Ionic2CLI-Meteor-WhatsApp

WhatsApp Clone tutorial with Ionic 2.0 CLI and Meteor Server
https://www.angular-meteor.com/tutorials/whatsapp2/ionic/setup
163 stars 185 forks source link

How do I deploy this to serve? #133

Open panharithleang opened 6 years ago

panharithleang commented 6 years ago

I want to Deploy this project to a server. However, when I use mup js to Deploy this I get

    /bundle/bundle/programs/server/mini-files.js:82
    const unicodeNormalizePath = (path) => {
                                         ^
    SyntaxError: Unexpected token >
        at Module._compile (module.js:439:25)
        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 Module.require (module.js:364:17)
        at require (module.js:380:17)
        at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)

    => Redeploying previous version of the app
marquesgabriel commented 6 years ago

Hello, i've been studying this tutorial for the last days and today i stopped with this same problem. I'll leave a comment here and watch for new messages

darkbasic commented 6 years ago

You can deploy the server (everything under the api directory) like any normal Meteor application, while you can deploy the client like any other Angular application. The next version of the tutorial will include a chapter about deploying.

jayserdny commented 6 years ago

+1 for the tutorial. I tried to deploy as well but got so many errors.

panharithleang commented 6 years ago

I finally be able to deploy this. Just use mup to deploy the api folder normally as a meteor project.

jayserdny commented 6 years ago

@panharithleang Just wondering, where did you deploy it? I want to deploy mine to Heroku and I don't really know if I can using meteor up

panharithleang commented 6 years ago

@jayserdny I deployed it to a hosting server at digital ocean.

marquesgabriel commented 6 years ago

There is another repo, that creates the app using Meteor CLI, not Ionic's. Then you could deploy using mup https://github.com/Urigo/Ionic2-MeteorCLI-WhatsApp/

airstep commented 6 years ago

I've used mup - with success

jjh-vi commented 6 years ago

Can someone link a guide or give at least basic steps to:

  1. Package as android app ( I'm guessing an ionic/cordova cmd/config? android noob here )
  2. Deploy to a server ( it looks like mup from /api dir is what people are suggesting)

Thanks, sorry if something here is obvious, I am new to webapps -> phone app