sudo apt-get install nginx Define your nginx config, e.g. at /etc/nginx/conf.d/reverse-proxy.conf: server { listen 127.0.0.1; location /foo/ { proxy_pass https://www.example.com/; } } Reload your config (if it fails...
...run sudo nginx -t to debug) sudo service nginx reload Done. Visit http://localhost/foo/ and you'll see results of https://www.example.com/. Note that nginx handles HTTPS out of...
...look like this: # Begin Whenever generated tasks for: project100 MAILTO="log@example.com" MAILFROM="cron@example.com" # When server is booting up, ensure Sidekiq is running @reboot start_sidekiq 23 8 * * * baz 30 * * * * plop...
describe '#crawl_messages' do it 'should process messages in batches so the server stays alive' do message = stub message.should_receive(:crawl) Message.should_receive(:find_in_batches).and_yield...
Option 2: Drop each table individually Prefer this for production or staging servers. Permissions may be managed by your operations team, and you do not want to be...
...IP addresses via DHCP correctly (DHCPDiscover), but after the answer of the dnsmasq dhcp server (DHCPOffer) we did not see any further traffic on the host machine. FYI: The instance...
...new differently named directory. Example: git clone git@example.com:repo repo-copy (if your git server is slow you can also just copy the repository rsync -a repo/ repo-copy)
...other test databases. Make sure you create those test databases. If there are further services (e.g. a Redis store), update your configuration for them, too (e.g. use a different Redis...
...from the form field's ngModel (which means it's not sent to the # server, and old values would not be overwritten). # # This directive makes sure that form fields with...
...file attachments. If you need to move the files from local storage (i.e., your servers' harddisk) to Amazon S3, you can simply change settings for Paperclip to use the S3...
Run script /dev/null to own the shell (more info over at Server Fault); then try screen again. Important: Do not chmod the virtual terminal device like suggested...
...The rails-erb-loader-dependencies comment is only needed to make the webpack-dev-server automatically regenerate the file, when your secrets.yml changes...
...to offer your users a live preview before they upload the file to the server. HTML5 via jQuery Luckily, HTML5 has simple support for this. Just create an object URL...
...don't need to, but when you want to see which queries your MySQL server currently needs to handle (and if there are locks, etc), you could say SHOW PROCESSLIST...
Ask your operations team to do it. After the update, log onto the server and remove the broken Bundler cache directories like (e. g. shared/bundle)
...per e-mail or Airbrake. Why? Rack has introduced this limit to prevent your server from being DOSed through large form submissions. The default value should also be enough for...
If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock_obtain_timed_out_SimpleFSLock(...)" ... and if your jetty.request.log contains entries...
...sudo ip route del default sudo ip route add default via Add another DNS server to /etc/resolv.conf, for example
...Problem can occur when using the integrated Ruby Mine Debugger: Try to restart the server without debugging mode
...previewable to my knowledge till dato. Don't forget to provide rmagick on your server
...over 30 seconds to finish. It turns out that for some reason, the SOLR server seemed not to close its HTTP connections properly. After the maximum number of connections was...
...seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying to. Simply add set :deploy_via, :remote_cache set :copy_exclude, [ '.git...
...workers to 1 and the other requests have to wait. UNICORN_WORKERS=1 rails server
...trouble will come from. Replace 147.0.0.123 with the client address, log into your web server and run: remote$ sudo tcpdump host 147.0.0.123 and port 80 -s 0 -w /tmp/network.dump
...systems `postgres` user $ sudo su -l postgres $ pgsql postgres=# \c your_database; psql (9.3.9, server 9.3.5) You are now connected to database "your_database" as user "postgres". your_database =# CREATE...
Each time thin boots, it prints a boot message : Thin web server (v1.6.3 codename Protein Powder) Maximum connections set to 1024 Listening on localhost:36309, CTRL+C to stop