Last active
April 20, 2018 16:13
-
-
Save radinreth/23a367559b68fecff3aa78763afa48e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subl . command not found | |
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change Permission to WWW folder
sudo chmod 777 www
or
sudo chown -R deployer:admin www