Reputation: 1486
I am learning JavaScript from Scratch . The Instructor is using ATOM editor. I am not able to launch live server. Please suggest me steps.
Upvotes: 6
Views: 20721
Reputation: 656
If the atom live server is already installed, click Packages on the menu bar.
There will be a dropdown menu "atom-live-server", hit start
Upvotes: 0
Reputation: 7625
I had a same problem. When I used ctrl+alt+l shortcut, or followed instructions in this video, nothing really happened.
However, I solved it by restarting atom-live-server
package:
Settings
,Packages
,Disable
button within atom-live-server
card,Enable
button within atom-live-server
card.Now, when you use ctrl+alt+l shortcut, live server will start. You can quit live server with ctrl+alt+q shortcut.
Upvotes: 3
Reputation: 328
If atom live server is already installed, we can restart it by, ctrl-alt-l link: https://atom.io/packages/atom-live-server
Upvotes: 0
Reputation: 147
To install atom-live-server:
To launch atom-live-sever:
Done.
Upvotes: 7
Reputation:
What do you mean by "live server"? Would you like to test website on your local network? If so, the easiest solution is (assuming you have node.js installed) to install http-server
command-line tool. Install it globally with npm install http-server -g
, then navigate (of course in terminal) to the directory where your website is and type http-server
command. Message like this will appear:
Starting up http-server, serving ./
Available on:
http://192.168.1.6:8080
http://127.0.0.1:8080
Hit CTRL-C to stop the server
To launch your website on your machine or another machine on the same network, just go to http:// ip :8080
If you don't have node.js, Python also offers similar command-line tool. You can use it with:
python -m http.server
python -m SimpleHTTPServer
Upvotes: 1