Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

How to install Pow from scratch #31

Closed
138over opened this issue Apr 8, 2011 · 10 comments
Closed

How to install Pow from scratch #31

138over opened this issue Apr 8, 2011 · 10 comments

Comments

@138over
Copy link

138over commented Apr 8, 2011

first off... awesome work 37Signals, this is really COOL! I just wanted to get this up ASAP, so I did not dig into issues, just quickly read some of the issues folks ran into, and I had already intended to manually install V8, Node, Redis as I'm working thru learning the technologies... ok so I have not double checked my steps. but they should give folks an idea of what needs to be done if they are unsure about what is going on underneath the installation

Uninstalled Ports

http://guide.macports.org/chunked/installing.macports.uninstalling.html

Install Homebrew

https://github.com/mxcl/homebrew/wiki/installation

Install V8

brew install scons
mkdir ~/javascript
cd ~/javascript
svn checkout http://v8.googlecode.com/svn/trunk/ v8
cd ~/javascript/v8
scons sample=shell
sudo ln -s ~/javascript/v8/shell /usr/local/bin/v8
cd ~/javascript/v8
svn update
scons sample=shell

Install node

I was was going to get the sources and compile, and then thought brew...
brew install node

Install redis

curl -O http://redis.googlecode.com/files/redis-2.2.4.tar.gz
tar xzf redis-2.2.4.tar.gz
cd redis-2.2.4
make
sudo cp src/redis-server /usr/local/bin
sudo cp src/redis-cli /usr/local/bin

Install npm

git clone git://github.com/isaacs/npm.git
cd npm
sudo make install
# node cli.js install -g -f
# /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm.js
# npm@1.0.1rc6 /usr/local/lib/node_modules/npm

Uninstall RVM and Install new as update is broken

mv .rvm{,.1}
bash < <(curl -B http://rvm.beginrescueend.com/install/rvm)
rvm --version
# rvm 1.5.3
rvm install 1.9.2
rvm --default 1.9.2
which ruby
gem install rails3
gem install sinatra
gem install sqlite3
gem install json
gem install redis
gem install nokogiri

Install Pow

curl get.pow.cx/uninstall.sh > pow.sh
edit pow.sh and comment out these 2 lines
# launchctl unload "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 
# launchctl load "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 
./pow.sh

Git clone resque

cd Workspaces
git clone https://github.com/defunkt/resque.git
cd resque
edit .rvmrc
rvm 1.9.2
bundle install
cd .pow
ln -s /Users/kramerica/Workspaces/resque
cd resque
vi .rvmrc
rvm 1.9.2
cd ~/.pow/resque
reply 'y' to trust
bundle install

Check DNS

edit /etc/resolver/dev ==> add newline after last entry
scutil --dns
    resolver #9
        domain : dev
        nameserver[0] : 127.0.0.1
        port    : 20560

Fix pow script to use rvm ruby

edit ~/Library/Application\ Support/Pow/Current/bin/pow
#!/usr/bin/ruby ==> #!/usr/bin/env ruby

Start up Redis

sudo redis-server

Startup Pow

launchctl unload "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 
launchctl load "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 

Bring up Resque in browser

open http://resque.dev
@sstephenson
Copy link
Contributor

Thank you for the writeup!

@josh, can you think of any reason we shouldn't use #!/usr/bin/env ruby?

@josh
Copy link
Contributor

josh commented Apr 8, 2011

I don't think we should for that bootstrap script. In most cases, /usr/bin/ruby is a reliable 1.8 install.

I'd rather find a way to rewrite it in node. I totally forgot why node's realpath stuff didn't work. Might be worth a try again.

@hidenowt
Copy link

hidenowt commented Apr 8, 2011

I did all the procedures and still have to restart my computer.

Every time I create a symbolic link to a my app I need to restart my computer to work anyone know?

After I rebooted my depot app is working, but if I add a new app it shows this page
http://dl.dropbox.com/u/1182970/pow.png

Anyone have any idea?

Remember that followed all the steps posted on this issues

@valpackett
Copy link

Node already contains V8. It won't use your custom built v8 without special flags.

Also, brew install redis. And there are node version managers (n, nave, nvm)

@josh
Copy link
Contributor

josh commented Apr 26, 2011

Would it be okay if I moved this into the Wiki?

@138over
Copy link
Author

138over commented Apr 26, 2011

sure. which u talking bout willis

On Apr 25, 2011, at 5:21 PM, josh wrote:

Would it be okay if I moved this into the Wiki?

Reply to this email directly or view it on GitHub:
#31 (comment)

@138over
Copy link
Author

138over commented Apr 26, 2011

Josh -- you want to move it to the POW wiki? Sounds good to me

@138over 138over closed this as completed Apr 26, 2011
@138over 138over reopened this Apr 26, 2011
@josh
Copy link
Contributor

josh commented Apr 26, 2011

@QBAL that'd be great. I'm working on a FAQ and Troubleshooting page right now. Do you think we should just put this on its own page?

@138over
Copy link
Author

138over commented Apr 26, 2011

@josh, use this information any way you'd like. I appreciate all the work you guys are doing!

@josh
Copy link
Contributor

josh commented Apr 26, 2011

@QBAL Created an Installation guide.

I'm closing this issue. Please make any changes to the wiki version. Thanks for writing this up!

@josh josh closed this as completed Apr 26, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants