Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run my angularJs app into hosted server

I am new for angularJs development... I have successfully installed "yeoman" into my PC(I am using windows-7 64-bit system) and my app folder structure is:

  • components
  • images
  • scripts
  • styles
  • views
  • index.html etc...

I am using "grunt server" command for running my application in localhost, But my question is that.. suppose I want to upload my app into hosted server, So which files should I upload into server and how to run the app, Is there any option to run "grunt server" command into server. So please give me some suggestion for this.

like image 520
Anil Kumar Pandey Avatar asked Oct 03 '22 19:10

Anil Kumar Pandey


1 Answers

Just run grunt which builds a distributable version of your app into the dist folder. You then upload the contents of that folder to your preferred hosting provider.

like image 60
Sindre Sorhus Avatar answered Oct 09 '22 23:10

Sindre Sorhus