How to generate an static web from a Rails project
IMPORTANT: This method only works if the output static web files are served from a web server and the files are served from the root directory of the web server
Precompile assets with:
Open config/enviroments/production.rb and change the following attribute to true:
Run the server in production mode
then execute wget command:
Parameters:
- -P prefix directory. the base directory to write web
- -nH no-host-directories. Don’t create the base direcotry with the site name
- -m man mirror equivalent to -r -N -l inf –no-remove-listing