This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Edit the file /var/www/vhosts/:virtual_host/conf/httpd.include | |
| Replace #{server_ip}, :domain_name, :virtual_host, :application, #{application_port} with your own details. | |
| --- | |
| <VirtualHost #{server_ip}:80> | |
| ServerName :domain_name:80 | |
| ServerAlias *.:domain_name | |
| DocumentRoot /var/www/vhosts/:virtual_host/:application/public | |
| <Directory /var/www/vhosts/:virtual_host/:application/public> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| touch /etc/init.d/supervisord.init | |
| --- edit the file to look like the following: | |
| # chkconfig: 345 20 80 | |
| # description: Manages processes | |
| /usr/bin/supervisord | |
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo_supervisord_conf > /etc/supervisord.conf #sets up the sample supervisor configuration. | |
| -- now edit the file and add your application details. Here is a sample. Replace :virtual_host with your virtual host name. | |
| [program:myapp] | |
| command=/var/www/vhosts/:virtual_host/application/start.sh | |
| autostart=true | |
| autorestart=true | |
| startretries=3 | |
| stdout_logfile=/var/www/vhosts/:virtual_host/application/log/server.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| touch /var/www/vhosts/:virtual_host/application/start.sh | |
| --- edit the file to include the following. Replace :virtual_host and :application.js with your own files. | |
| #! /bin/sh | |
| cd /var/www/vhosts/:virtual_host/application | |
| /usr/local/bin/node :application.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p /var/www/vhosts/:virtual_host/application/log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| easy_install supervisor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ~/src | |
| wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c8.tar.gz | |
| tar xfvz setuptools-0.6c8.tar.gz | |
| cd setuptools-0.6c8 | |
| python setup.py build | |
| python setup.py install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p ~/src && cd ~/src && git clone git://github.com/ry/node.git | |
| cd node/deps/udns && ./configure && make | |
| cd .. && ./configure && make && make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.): | |
| app/middleware/flash_session_cookie_middleware.rb:14:in `call' | |
| passenger (2.2.7) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request' | |
| passenger (2.2.7) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' | |
| passenger (2.2.7) lib/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler' | |
| passenger (2.2.7) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' | |
| passenger (2.2.7) lib/phusion_passenger/utils.rb:184:in `safe_fork' | |
| passenger (2.2.7) lib/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application' | |
| passenger (2.2.7) lib/phusion_passenger/abstract_server.rb:352:in `__send__' | |
| passenger (2.2.7) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Referer: http://master.woople.local/bin-debug/Woople.swf? | |
| Content-type: application/json | |
| Content-length: 172 | |
| {"authenticity_token":"ksE82gB0HFQjlHiy8+1pKx+NSXePQoiKfbAtN3X82MM=","_method":"put","course":{"category_id":0,"approved":false,"id":44,"name":"Course 2","description":""}} |