A place where the Joyent community can gather, help each other out, and stay informed.
You are not logged in.
This is really right now just to remind myself what I did, if people like it I can expand upon it more.
1. ssh into your account
2. mkdir ~/sites/ (or where ever you put your Ruby on Rails apps for deployment if you already have one created)
3. cd ~/sites/
4. svn checkout svn checkout svn://leetsoft.com/typo/trunk typo
5. cd typo
6. change the /usr/bin/env ruby to /usr/local/bin/ruby in public/dispatch.rb and public/dispatch.fcgi
7a. mysql -u username -p
7b. create database username_typo;
7c. exit;
7d. mysql -u username -p username_typo < db/schema.mysql.sql
8. ln -s /home/username/sites/typo/public /home/username/web/public/typo
9. add a $HTTP["host"] entry into your lighttpd.conf for typo (there are plenty of tutorials out of there in the forum for this)
10. kill all your dispatch.fcgi processes and your lighttpd process
11. restart lighttpd
12. navigate to http://typo.yourdomain.tld/
You should be greeted with the request to create the initial user account for typo, if so, hurrah, you did it!
Offline
Hi I wonder if you can expand on points 8 and 10. i am quite new to the shell and didn't quite follow the instructions:
8. ln -s /home/username/sites/typo/public /home/username/web/public/typo
what does the -s refer to?
10. kill all your dispatch.fcgi processes and your lighttpd process
what are the terminal commands to kill /restart the relevant processes...
thanks
Offline
-s stands for symbolic link (rather than a hard link). you pretty much always want to use ln -s
killall -9 -u your_username lighttpd
killall -9 -u your_username ruby18
or do a ps aux, look for the lighttpd and ruby18 process, take note of their PID (process ID - the first number in the row) and do a kill -9 pid (replacing pid with the PID you found)
then to restart just start your lighttpd server however you're doing it: lighttpd -f mylighttpd.conf
Offline
When I tried to ls it just gave an error saying that the home/username/web/public/typo doesn't exist.. all else went fine. When I launch lighttpd however it just spits out a blank page :(
Should configuring database.yml be an extra step? (I've done this btw)
Offline
How are you supposed to configure the database.yml file:
Here is the database.yml.example:
login: &login adapter: mysql host: localhost username: root password:development:
database: typo_dev <<: *logintest:
database: typo_tests <<: *loginproduction:
database: typo <<: *loginI have created the mysql database per lbmyers instructions above. (ex: my database is sheqman_typo).
Offline
Hi Guys, these post was my first reference to install Typo on my TxD.
Then I generate another complete tutorial, you can find it here:
http://www.sharklog.com/articles/2006/03/26/google-sitemaps-check-this-free-on-line-sitemaps-generator
Byes
Offline
mlemos wrote:
Hi Guys, these post was my first reference to install Typo on my TxD.
Then I generate another complete tutorial, you can find it here:http://www.sharklog.com/articles/2006/03/26/google-sitemaps-check-this-free-on-line-sitemaps-generator
Byes
Don't you mean this link?
http://www.sharklog.com/articles/2006/03/25/how-to-install-and-configure-typo-on-textdrive
Do I still need a Typo account to install @ Textdrive?
Offline
If this is basic then I'm in trouble. I'm having a little difficulty grasping the concept of Ruby. Can someone point me to a "1 + 1 = 2" version of how to get started? I'm reading through the page jonto suggested, but still don't get it. It's the jargon that's throwing me off. I have a strong desire to learn about this, but I need to start from the level of complete n00b. Any ideas?
~Jonathan
Offline
So I went through all the installation, got it up and running and then run into this:
Mysql::Error: Table 'username_typo.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-05-24 01:22:43')
Excuse me? There is no table 'triggers' defined in the schema.mysql.sql file.
So far, installing typo has been a complete pain.
Offline
I was referred to this link which shows how to set up a Rails app using lighttpd properly.
http://help.textdrive.com/index.php?pg= … &id=71
I have not had a chance to try this, but let me know how it goes if you get it working.
Offline
stevensacks wrote:
So I went through all the installation, got it up and running and then run into this:
Mysql::Error: Table 'username_typo.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-05-24 01:22:43')
Excuse me? There is no table 'triggers' defined in the schema.mysql.sql file.
So far, installing typo has been a complete pain.
Ditto. I got the same problem only it was looking for a 'blogs' table. Not solved it yet.
Offline
stevensacks wrote:
So I went through all the installation, got it up and running and then run into this:
Mysql::Error: Table 'username_typo.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-05-24 01:22:43')
Excuse me? There is no table 'triggers' defined in the schema.mysql.sql file.
So far, installing typo has been a complete pain.
FIX: SSH into your account, then navigate to the typo directory. Enter
rake migrate
Sorted!
Offline
If you follow all the above steps, then navigate to http://typo.yourdomain.tld/ and see the following message:
"Typo failed to start properly"
... it's probably because your trying to access your domain via port 80 (the default), rather than the unique port you need to request from TextDrive.
For info on requesting a port: http://help.textdrive.com/index.php?pg= … amp;id=252
Once you've got your unique port - say 8345 - then you should be able to see your Typo instal at http://typo.yourdomain.tld:8345
Next, you'll want to set up a proxy for port 8345: http://help.textdrive.com/index.php?pg= … amp;id=255
... which will allow you to view your shiny new blog at http://typo.yourdomain.tld
Clearly, this isn't software for someone who wants to concentrate solely on their creative writing. :)
Trevor
Offline