Form.io serve not working


#1

Hi, I configure a server for development of form.io service. I installed npm, bower and a GIT repository of forms.io but when I try to launch the app it does not work with cloud9.

Can someone help me.


#2

I believe you are trying to access the service over a port that isn’t allowed on c9. Try changing browsersync to output on port 8081 instead of 3000.

Cloud 9 only allows apps on ports 8080-8081-8082

I usually put browsersync on 8081 and broswersync ui on 8082.

Should work after that. Hope this helps!


#3

Expanding on what @informatics_studio said, in order to prevent Cloud9 from being abused, they only allow you to use ports 8080, 8081, and 8082. You can use the $PORT and $IP environment variables, which contain port 8080 and the IP 0.0.0.0, respectively, in your command or code to run it on the correct ports.


#4

Thankyou, it worked pretty well with your helpfull messages