勉強したこと、調べたことを記録する
スクリプトの実行がシステムで無効になっているため、ファイル C:\hoge\job.ps1 を読み込めません。詳細については、「get-help about_signing」と入力してヘルプを参照してください。 発生場所 行:1 文字:12 + .\job.ps1 <<<<
32-bit: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe 64-bit: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
> C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe PS C:\hoge > Set-ExecutionPolicy RemoteSigned PS C:\hoge > exit > > C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe PS C:\hoge > Set-ExecutionPolicy RemoteSigned PS C:\hoge > exit
$ sudo yum install python-devel git hg curl $ curl -O http://python-distribute.org/distribute_setup.py $ sudo python distribute_setup.py $ easy_install virtualenv $ virtualenv --no-site-packages myenv $ source ./myenv/bin/activate $ easy_install rhodecode
error: Setup script exited with Python headers are required to build Mercurial
$ paster make-config RhodeCode production.ini Distribution already installed: RhodeCode 1.5.2 from /path/to/lib/python2.6/site-packages/RhodeCode-1.5.2-py2.6.egg Creating production.ini Now you should edit the config files production.ini
$ paster setup-rhodecode production.ini
Enter a valid absolute path to store repositories. All repositories in that path will be added automatically:
mkdir -p /home/user/my_repo paster setup-rhodecode production.ini --user=user --password=Ninni --email=user@yourdomain.com --repos=/home/user/my_repo
paster serve production.ini
EnvironmentError: Subprocess exited due to an error:
$ git clone https://github.com/git/git.git $ cd ./git $ git tag $ git checkout v1.8.?? #<-ここは好きにして
$ sudo yum install -y curl-devel expat-devel openssl-devel gettext
$ sudo yum install perl-ExtUtils-MakeMaker
$ make NO_TCLTK=Yes prefix=/usr/local $ make install $ sudo yum remove git $ source /etc/profile $ git --version
$ vim Makefile prefix = /usr/local
$ git config --system user.email "yourmail@dokkasonohen.jp" $ git config --system user.name "Fistname Lastname"
curl -s -o use-python https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/python/use-python PYTHON_VERSION=2.7.2 . ./use-python # when using virtualenv, don't forget to source activate! virtualenv -q myenv source ./myenv/bin/activate easy_install sphinx ls cd gaedir/rst make html
$ mkdir mysphinx $ cd mysphinx $ git init $ git remote add origin ssh://git@bitbucket.org/{userAccount}/hoge-docs01-repo.git
$ curl -O "http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py" $ python bootstrap.py -d init $ vim conf.py [buildout] parts = py sphinx [py] recipe = zc.recipe.egg interpreter = py eggs = bootstrap [sphinx] recipe = z3c.recipe.scripts eggs = sphinx $./bin/buildout $./bin/sphinx-quickstart
$vim app.yaml application: hoge-docs01 version: 1 runtime: python api_version: 1 handlers: - url: (.*)/ static_files: _build/html\1/index.html upload: _build/html(.*)/index.html - url: /(.*) static_files: _build/html/\1 upload: _build/html/(.*)
$vim index.rst Welcome to ccm-lulu.com's documentation! ========================================= Contents: .. toctree:: :maxdepth: 2 :numbered: doc001 doc002 Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` $vim doc001.rst Hoge doc ======== hoge01 ---------- - foo - bar hoge02 ----------- - barbar - foofoo
$vim .ignore bin parts eggs $ git add . $ git push origin master