Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Migrated / imported Arrow based Node app is still talking to original ACS data not ArrowDB

$
0
0

Hi all,

I've been stalled for 2 days trying to figure this out myself.

I've moved across from Ti to Appc and have imported both my game and a Node based game-server project (which uses websockets)

I have published the Node.ACS app to the Arrow cloud using appc node publish and have a the new base-url in the form:

https://<SUBDOMAIN_TOKEN>.cloudapp-enterprise.appcelerator.com
which I have used to replace the old base-url in the tiapp.xml

I am happy using the new Arrow app-keys and they work just fine between my mobile app and Arrow. The websockets part of my app is still working.

The problem is my Node app is still communicating with my old ACS based data and not my new Arrow data.

I am using the standard Node framework.(mvc)

I have changed the app-key referred to in the app.js > global.ACS.init('app-key-here') which now has the app-key from my app on the Arrow dashboard

AND HERE'S THE PROBLEM:

It will successfully create a new user in the Arrow 'space' from app.js but when trying to perform global.ACS.Objects.update({}) from websockets>socketcontroller.js, it still communicates with the old ACS database.

Something in the Node project still thinks it's in the ACS space or something?

I remember I had to 'link' the two projects back when I made the game server in TiStudio... (import node.acs bindings?) is this something to do with that?

Additionally, after initial log in, no console.log() commands show up in the tail logs at all...

Any help will be gratefully received!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>