Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import { sitemapBuilder as buildSitemap } from 'react-router-sitemap'; | |
| import routes from '../routes'; | |
| import path from 'path'; // add path which will be needed for file write | |
| import fs from 'fs'; // import file system object | |
| // use your website root address here. Optimally you can | |
| // include dev and production enviorenments with variable | |
| const hostname = 'http://localhost:3000'; | |
| // define our destination folder and sitemap file name |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000