Any way to automatically upload the updated .swf file to...

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Any way to automatically upload the updated .swf file to...

Postby Ninjaoninja2 » 04 Mar 2017, 02:27

Hey guys,

I was wondering with SFS2X if there's a way to automatically upload a .swf file that's been updated in Flash to my web server? And if so, could I get some possible examples? If not, I think it would be a nice thing to investigate maybe through HTTP requests, and possibly add it to SFS arsenal so Developers could do more, in less time.

Thanks, Ninjaoninja2.
User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Re: Any way to automatically upload the updated .swf file to...

Postby meanvel » 04 Mar 2017, 06:05

You could install git on your pc and server and have it sync the files. Other options out there like subversion also have this functionality I think.

You will have to install a cron script on your server to check your git repository for new versions each hour, and auto-update if there is. SmartFoxServer is not version control software, lol...
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Any way to automatically upload the updated .swf file to...

Postby Lapo » 04 Mar 2017, 08:41

HTTP Uploads are supported in the SmartFoxServer client API and on the server side.
See here:
http://docs2x.smartfoxserver.com/Advanc ... le-uploads

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Baidu [Spider] and 47 guests