Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riywo/myroku-cookbooks
https://github.com/riywo/myroku-cookbooks
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/riywo/myroku-cookbooks
- Owner: riywo
- Created: 2013-01-03T06:01:57.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-06T18:12:51.000Z (about 12 years ago)
- Last Synced: 2024-04-14T15:22:48.627Z (9 months ago)
- Language: Ruby
- Size: 169 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chef cookbooks for Myroku Server
## INSTALL
$ git clone https://github.com/riywo/myroku-cookbooks.git
$ cd myroku-cookbooks
$ bundle install --path vendor/bundle
$ bundle exec berks install --path vendor/cookbooks## with Vagrant
$ bundle exec vagrant up
(takes a long time because of ruby-build)
$ bundle exec vagrant sshSetup myroku-server
> sudo su - myroku
> cd myroku-server
> bundle install --path vendor/bundle
> cp config/common.yml.sample config/common.yml
(and modify common.yml)
> bundle exec foreman run rake db:migrate
> bundle exec foreman run rake admin:create
> bundle exec foreman run cap admin deploy:setup deploy
(takes a long time because of ruby-build in llenv)Then, access `http://www.example.local` (DNS or hosts are required)
## Add ssh key
$ curl -X POST -F "[email protected]" -F "pubkey=@YOUR_PUBKEY_FILE" http://www.example.local/user
## Create a new application
$ curl -X POST -d "name=node_test" http://www.example.local/application
After that, you can push `node_test` repository
$ git clone https://github.com/riywo/node_test.git
$ cd node_test
$ git remote add git@myroku-server:node_test ### myroku-server points the admin server
$ git push -u myroku masterThen, access `http://node_test.example.local` (DNS or hosts are required)