Skip to content

Instantly share code, notes, and snippets.

View aamishbaloch's full-sized avatar
🎯
Focusing

Aamish Baloch aamishbaloch

🎯
Focusing
  • HelloFresh
  • Berlin, Germany.
View GitHub Profile
@AKNiazi
AKNiazi / Manual Deployment with nginx and puma
Last active September 2, 2016 17:18
Manual Deployment with nginx and puma
Link I used i the following steps is https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-puma-and-nginx-on-ubuntu-14-04 and this link http://ruby-journal.com/how-to-setup-rails-app-with-puma-and-nginx/
Also a useful link to do this properly is http://nicolas-brousse.github.io/ubuntu-install-and-tips/pages/installation/rails-puma/
1. Install DBMS (postgre, mysql) and install rvm, ruby, rails and there dependencies
2. clone the git repository to any location ideally in home
3. cd myapp
@ikennaokpala
ikennaokpala / nfs-vagrant-error.md
Last active March 8, 2024 12:54
Vagrant error :NFS is reporting that your exports file is invalid

Vagrant error :NFS is reporting that your exports file is invalid

==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":

exports:2: path contains non-directory or non-existent components: /Users/<username>/path/to/vagrant
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y
sudo apt-get install libfreetype6 libfreetype6-dev -y
sudo apt-get install libfontconfig1 libfontconfig1-dev -y
cd ~
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2
sudo mv $PHANTOM_JS /usr/local/share
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin