Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please upgrade this plugin for NS 7 #72

Open
lehongwang opened this issue Nov 24, 2020 · 12 comments
Open

Please upgrade this plugin for NS 7 #72

lehongwang opened this issue Nov 24, 2020 · 12 comments

Comments

@lehongwang
Copy link

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
Copy link
Contributor

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
Copy link

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

@sieubanana
Copy link

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

@weathered-fire-2600
Copy link
Contributor

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
Copy link

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
Copy link
Author

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

thank you

@weathered-fire-2600
Copy link
Contributor

@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
Copy link

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
Copy link
Author

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
Copy link
Author

@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
Copy link

@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
Copy link

vallemar commented Mar 19, 2021

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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants