Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| 3/18/2021: WE HAVE MOVED: For the latest instructions on how to use the bulk wells fargo PDF downloader, | |
| please ignore this page and visit below: | |
| https://github.com/binary1230/wellsfargo-bulk-PDF-statement-downloader/blob/main/README.md | |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| # 1. Excerpt of Photo and User model | |
| # Photos can belong to Cities and Districts, and users can browse Cities and | |
| # Districts to see the photos in them. When a user uploads a photo I really want | |
| # them to tell me where the photo came from. | |
| # Also, Users can be from a City and District. This is not currently used for very | |
| # much, but gives me a path to add location-enhanced results for other stuff in the | |
| # future. | 
| #!/bin/bash | |
| # CentOS rbenv system wide installation script | |
| # Forked from https://gist.github.com/1237417 | |
| # Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
| # Install pre-requirements | |
| yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
| make bzip2 autoconf automake libtool bison iconv-devel git-core | 
| First, install nginx for mac with "brew install nginx". | |
| Then follow homebrew's instructions to know where the config file is. | |
| 1. To use https you will need a self-signed certificate: https://devcenter.heroku.com/articles/ssl-certificate-self | |
| 2. Copy it somewhere (use full path in the example below for server.* files) | |
| 3. sudo nginx -s reload | |
| 4. Access https://localhost/ | |
| Edit /usr/local/etc/nginx/nginx.conf: | 
| # This is the root of our app | |
| @root = File.expand_path(File.join(File.dirname(__FILE__), "www")) | |
| run Proc.new { |env| | |
| # Extract the requested path from the request | |
| req = Rack::Request.new(env) | |
| index_file = File.join(@root, req.path_info, "index.html") | |
| if File.exists?(index_file) | |
| # Rewrite to index |