serve current directory from command line
Shell
#Simplest way possible (thanks Aaron Patterson/n0kada):
ruby -run -e httpd . -p 9090
# I have this in my .bashrc :
function serve {
port="${1:-3000}"
ruby -run -e httpd . -p $port
}
# It serves the current directory on port 3000 by default, but you can also specify the port:
~ $ cd tmp
~/tmp $ serve # ~/tmp served on port 3000
~/tmp $ cd ../www
~/www $ serve 5000 # ~/www served on port 5000
Also in Shell:
- Title
- cuda 10 install pytorch
- Category
- Shell
- Title
- task manager ubuntu
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- date linux show millis
- Category
- Shell
- Title
- how to install react router dom with typescript
- Category
- Shell
- Title
- git create tag and push
- Category
- Shell
- Title
- git remove folder remotely
- Category
- Shell
- Title
- mostrare i grafici matplotlib sulla shell python
- Category
- Shell
- Title
- how to start a web server linux
- Category
- Shell
- Title
- get local node version
- Category
- Shell
- Title
- docker no space left on device ubuntu but only 75% use?
- Category
- Shell
- Title
- converter mp3 para kali linux
- Category
- Shell
- Title
- bash linux scripting laguage
- Category
- Shell
- Title
- install telnet windows server 2012
- Category
- Shell
- Title
- windows subsystem for linux optional component is not enabled. please enable it and try again
- Category
- Shell
- Title
- linux replace string in files recursively
- Category
- Shell
- Title
- upgrade yarn version
- Category
- Shell
- Title
- how to install new gatsby project locally
- Category
- Shell
- Title
- Data path ".builders['app-shell']" should have required property 'class'.
- Category
- Shell
- Title
- check upstream branch git
- Category
- Shell
- Title
- ubuntu logout
- Category
- Shell
- Title
- check git version
- Category
- Shell
- Title
- ubuntu list running applications
- Category
- Shell
- Title
- install tomcat on mac brew
- Category
- Shell
- Title
- powershell bulk rename and add extra string to filename
- Category
- Shell
- Title
- count occurrences of word in file linux
- Category
- Shell
- Title
- run docker redis localhost
- Category
- Shell
- Title
- increase open file limit linux mac catalina mariadb
- Category
- Shell
- Title
- ip address ubuntu
- Category
- Shell
- Title
- append a string in all files name linux
- Category
- Shell
- Title
- git rebase one commit
- Category
- Shell
- Title
- install pybind ubuntu
- Category
- Shell
- Title
- numpy uninstall anaconda
- Category
- Shell
- Title
- htaccess route to index.php
- Category
- Shell
- Title
- upgrade node version
- Category
- Shell
- Title
- php apache "You do not have permission to use at.
- Category
- Shell
- Title
- git fklow init
- Category
- Shell
- Title
- how to open emulator in vs code
- Category
- Shell
- Title
- install mongodb on mac
- Category
- Shell
- Title
- touch for powershell
- Category
- Shell
- Title
- how to install jupyter notebook in windows 10
- Category
- Shell
- Title
- conda install keras
- Category
- Shell
- Title
- set up git with github
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- apache basic auth setup
- Category
- Shell
- Title
- git change remote origin address
- Category
- Shell
- Title
- réinstaller interface graphique debian
- Category
- Shell
- Title
- install docker debain
- Category
- Shell
- Title
- how to find a file in linux terminal
- Category
- Shell
- Title
- how to restart x window manager in ubuntu 18.04
- Category
- Shell
- Title
- how to check if django is installed in ubuntu
- Category
- Shell
- Title
- ssl erzwingen htaccess
- Category
- Shell
- Title
- ubuntu bionic docker container install chrome
- Category
- Shell
- Title
- convert all files and folders in current directory into zip in linux
- Category
- Shell
- Title
- compile h5py
- Category
- Shell
- Title
- pyglet linux
- Category
- Shell
- Title
- ubuntu du sort by dir size
- Category
- Shell
- Title
- php my admin
- Category
- Shell
- Title
- powershell upgrade
- Category
- Shell
- Title
- fleet management software github
- Category
- Shell
- Title
- julia install linux
- Category
- Shell
- Title
- find flutter version
- Category
- Shell
- Title
- ssh ubuntu
- Category
- Shell
- Title
- how to install crispy forms django
- Category
- Shell
- Title
- how to access a samba share folder in linux
- Category
- Shell
- Title
- kill process on port
- Category
- Shell
- Title
- git push to heroku
- Category
- Shell
- Title
- vim command to open a file
- Category
- Shell
- Title
- git push
- Category
- Shell
- Title
- upgrade aws cli
- Category
- Shell
- Title
- install node on ubuntu
- Category
- Shell
- Title
- git remove all files in gitignore
- Category
- Shell
- Title
- ubuntu install tree
- Category
- Shell
- Title
- how to install pytorch 0.4.1
- Category
- Shell
- Title
- laravel create model
- Category
- Shell
- Title
- set remote url git
- Category
- Shell
- Title
- how to rename a file in ubuntu using terminal
- Category
- Shell
- Title
- git log display files changed
- Category
- Shell
- Title
- inicializar as credenciais no git
- Category
- Shell
- Title
- update all chocolatey packages
- Category
- Shell
- Title
- install redux-thunk
- Category
- Shell
- Title
- hash bang bash
- Category
- Shell
- Title
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
- Category
- Shell
- Title
- install imutils
- Category
- Shell
- Title
- kill process in windows powershell
- Category
- Shell
- Title
- unzip a tar.gz file in linux
- Category
- Shell
- Title
- how to run shell script
- Category
- Shell
- Title
- choco list installed
- Category
- Shell
- Title
- linux zip a directory
- Category
- Shell
- Title
- how to execute a file in ubuntu by double click
- Category
- Shell
- Title
- set email git
- Category
- Shell
- Title
- how to create folder in github
- Category
- Shell
- Title
- how to push to git hub
- Category
- Shell
- Title
- how to install mongoose
- Category
- Shell
- Title
- run powershell script from wsl bash
- Category
- Shell
- Title
- view memory usage linux
- Category
- Shell
- Title
- ng2-dragula valor software github
- Category
- Shell
- Title
- pip install crispy_forms
- Category
- Shell
- Title
- terminal line break mac
- Category
- Shell
- Title
- upgrade django
- Category
- Shell