You will need to send all your project files (www folder) and dependencies to the web server.
You can try.
Local
$ cd [ionic project] $ ionic platform add browser $ cd [ionic project]/platforms/browser/
and move the www folder to the [webapp] folder on the server.
Server
On your server:
1.Install Node.js
Install connect and serve-static
$ cd [webapp] $ npm install connect serve-static
Create server.js file
var connect = require('connect'); var serveStatic = require('serve-static'); connect().use(serveStatic(__dirname)).listen(8080)
Start service
$ node server.js &
Browser
Now you can go to http: // yourdomain: 8080 / index.html
I hope this can help you :)
source share