NativeScript / nativescript-app-sync

♻️ Update your app without going through the app store!
MIT License
125 stars 24 forks source link

Please upgrade this plugin for NS 7 #72

Open lehongwang opened 3 years ago

lehongwang commented 3 years ago

HI, Can you upgrade this useful plugin for nativescript 7 ?? It is very important for my app(s)

thank you very much

weathered-fire-2600 commented 3 years ago

Are there any efforts to make this plugin compatible with NS7? It would be really cool if anyone can reply to this (major) issue, NS7 has been released 3 months ago... It became very quiet here ;)

I really love this plugin but in current state it is far away from "production ready".

lonemanotzi commented 3 years ago

forget about NS7, this plugin has stopped working months back with MaxUserExceeded error and NS team has no apatite to fix this.

sieubanana commented 3 years ago

this plugin is main reason for me to use nativescript :((

weathered-fire-2600 commented 3 years ago

forget about NS7, this plugin has stopped working months back with MaxUserExceeded error and NS team has no apatite to fix this.

Looks like this is more a server related issue? Do you use the "built in" appsync server provided by nativescript team or do you host the server part on your infrastructure?

lonemanotzi commented 3 years ago

forget about NS7, this plugin has stopped working months back with MaxUserExceeded error and NS team has no apatite to fix this.

Looks like this is more a server related issue? Do you use the "built in" appsync server provided by nativescript team or do you host the server part on your infrastructure?

built-in appsync server. I didn't get time to set up my own server... So many plugins stopped working after IVY and NS upgrade, it looks like, time to move on to some other framework (React Native or Xamarin).

lehongwang commented 3 years ago

The server for appsync is not free, if possible, Can you make the paid version of appsync @EddyVerbruggen ?

thank you

weathered-fire-2600 commented 3 years ago

@NathanWalker and @EddyVerbruggen any update on this? Would be really cool to get some positive news about this pending issue and we all really would appreciate using this plugin with NS7.

I cloned the required repos, dived deep into this code and tried to fix this but with no luck. It seems that the zip gets unpacked (download successful) but the entrypoint for the application never gets updated when restarting (via force close) the app.

Also to mention: A fix must be done within the appsync-cli when releasing the ns7 application to the appsync-server. The script checks for a "nativescript" property in "package.json" so you cannot release it after migrating to NS7. Also the location of the paths to "appResourcesPath" and "appPath" have been changed from the old "nsconfig.json" to the "nativescript.config.ts"

AnthonyLenglet commented 3 years ago

FYI the plugin is actually updated to NS7, and is available under the name @nativescript/appsync, though nowhere to be seen on github, only on npm https://www.npmjs.com/package/@nativescript/appsync it was mentioned in this blog post that I feel like a lot of people missed due to it not being shown clearly, just kind of hidden somewhere https://nativescript.org/blog/nativescript-7-compatible-plugins/

lehongwang commented 3 years ago

FYI the plugin is actually updated to NS7, and is available under the name @nativescript/appsync, though nowhere to be seen on github, only on npm https://www.npmjs.com/package/@nativescript/appsync it was mentioned in this blog post that I feel like a lot of people missed due to it not being shown clearly, just kind of hidden somewhere https://nativescript.org/blog/nativescript-7-compatible-plugins/

wow, it;s great

but "out of resources"

User 'beb5d64989c998' has exceeded the 'max_user_connections' resource (current value: 15)

anyway to donate or paid version ?? thank you

lehongwang commented 3 years ago

@NathanWalker and @EddyVerbruggen any update on this? Would be really cool to get some positive news about this pending issue and we all really would appreciate using this plugin with NS7.

I cloned the required repos, dived deep into this code and tried to fix this but with no luck. It seems that the zip gets unpacked (download successful) but the entrypoint for the application never gets updated when restarting (via force close) the app.

Also to mention: A fix must be done within the appsync-cli when releasing the ns7 application to the appsync-server. The script checks for a "nativescript" property in "package.json" so you cannot release it after migrating to NS7. Also the location of the paths to "appResourcesPath" and "appPath" have been changed from the old "nsconfig.json" to the "nativescript.config.ts"

I have just built myself code push server and working great , thank you all, great plugin ever

mahmoudajawad commented 3 years ago

@lehongwang any tip on how to build the server? Did you just follow the instructions and got it work or that you had to implement some workarounds? I'm trying the instructions in docker as following, but failing: Dockerfile

FROM centos:8

RUN yum install -y nodejs git
RUN npm i -g pm2

RUN git clone https://github.com/NativeScript/nativescript-app-sync-server /root/nativescript-app-sync-server
WORKDIR /root/nativescript-app-sync-server
RUN npm i

RUN ./bin/db init --dbhost mysql --dbport 3306 --dbname "codepush" --dbuser "root" --dbpassword "root"

COPY process.json process.json

CMD ["pm2-runtime", "process.json"]

docker-compose.yml

version: "3"

services:
  mysql:
    image: mysql:8
    command: --default-authentication-plugin=mysql_native_password
    restart: 'always'
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: codepush
  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080
  app-sync-server:
    depends_on:
       - mysql
    build: .
    ports:
      - 3000:3000

process.json

{
  "apps": [
    {
      "name": "nativescript-app-sync-server",
      "max_memory_restart": "300M",
      "script": "/root/nativescript-app-sync-server/bin/www",
      "instances": "1",
      "exec_mode": "fork",
      "env": {
        "NODE_ENV": "production",
        "port": 3000,
        "CONFIG_FILE": "/root/nativescript-app-sync-server/config/config.js"
      }
    }
  ]
}
vallemar commented 3 years ago

Has anyone gotten the cli to work with NS7?

UPDATE Put this file on root folder: nsconfig.json (old nativescript.config.ts)

{
  "appPath": "src",
  "appResourcesPath": "App_Resources"
}