-
-
Save radinreth/23a367559b68fecff3aa78763afa48e8 to your computer and use it in GitHub Desktop.
subl . command not found | |
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin |
No permission to write gemfile lock
sudo chown -R $(whoami):$(whoami) myappfolder
Change Permission to WWW folder
sudo chmod 777 www
or
sudo chown -R deployer:admin www
Host key verification failed (cloning git repo causes error)
ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts
nginx logs
sudo tail -n 20 /var/log/nginx/error.log
Create New Rails Environment
- create
config/environments/staging.rb
- update
database.yml
- run
rake:secret
- update
config/secret.yml
Solve require /bin/bash --login (not sure)
chsh -s /bin/bash
Spring ERROR Permission denied @ dir_s_mkdir - /run/user/1000/spring-1001
unset XDG_RUNTIME_DIR
Pretty Nice solution
sudo chown -R deployer:admin /run/user/1000
SET rails environtment
export RAILS_ENV=production
in ~/.bashrc
perl: warning: Setting locale failed
sudo locale-gen
sudo dpkg-reconfigure locales
psql: FATAL: Peer authentication failed for user "xxx"
Install font khmer unicode for deployment server
copy font to /usr/share/fonts
Generate SSH keygen
ssh-keygen -t rsa -C "[email protected]"
(https://gist.github.com/adamjohnson/5682757)