Thanks for the response. I realized that I may have made some mistake. I ran the ‘git clone git@github.com:LinkFirms/Apollo.git’ instead of ‘git clone git@apollo:LinkFirms/Apollo.git’. If I use the latter, It both work.
But I use git clone git@github.com:LinkFirms/Apollo.git because It seem to be the way my automatic deployment tool did. In the settings file:
1 2 3
set :repository, 'git@github.com:LinkFirms/Apollo.git' set :branch, 'release' set :forward_agent, true
and here is the mina code . As the code run , I think It goes ‘git clone git@github.com:LinkFirms/Apollo.git’ finally, But what confused me is that the deployment did work!
So What caused the difference? (If I don’t make myself clear, please let me know.)
Thanks, even
github的ssh配置解决之后,万事大吉,只欠东风!但是,又碰到了一个问题
1
! Unable to load application: NameError: uninitialized constant Api::V1::BaseController::Authenticatable
deploy@iZ28lie0h28Z:~$ ssh -T apollo Hi LinkFirms/Apollo! You've successfully authenticated, but GitHub does not provide shell access. deploy@iZ28lie0h28Z:~$ ssh -T manhattan Hi LinkFirms/Manhatton! You've successfully authenticated, but GitHub does not provide shell access.
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:", LC_ALL = (unset), LC_CTYPE = "zh_CN.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
输入命令:
1
locale
输出结果是:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE=en_US: LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
let image = UIImage(contentsOfFile: self.URL.absoluteString!) let size = CGSizeApplyAffineTransform(image.size, CGAffineTransformMakeScale(0.5, 0.5)) let hasAlpha = false let scale: CGFloat = 0.0 // Automatically use scale factor of main screen
let image = UIImage(contentsOfFile: self.URL.absoluteString!).CGImage
let width = CGImageGetWidth(image) / 2.0 let height = CGImageGetHeight(image) / 2.0 let bitsPerComponent = CGImageGetBitsPerComponent(image) let bytesPerRow = CGImageGetBytesPerRow(image) let colorSpace = CGImageGetColorSpace(image) let bitmapInfo = CGImageGetBitmapInfo(image)
let context = CGBitmapContextCreate(nil, width, height, bitsPerComponent, bytesPerRow, colorSpace, bitmapInfo)
在上一个版本中,我有更新了两个跟语言有关的地方:一个是pbproject中的developmentRegion和项目info.Plist文件中的Localization native development region,我起初一度以为这两者是一个东西,后来发现完全不是。那么问题来了:到底是谁在作怪呢?
事实证明:developmentRegion并不会影响到app默认语言的显示,他只是影响到了Project > Info > Localizations,在导出xliff文件中才会有作用。
在我把Localization native development region从China改到United States之后,这个问题就不再存在了。非美式英文,简体中文,台湾繁体的用户将会使用英文,并且国际化文件会使用Base文件。