Skip to content

Instantly share code, notes, and snippets.

#include <linux/input.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv)
{
int fd;
UNIT DSTATE TMACHINE STATE MACHINE ACTIVE
deis-builder-data.service loaded 398b0c91.../172.17.8.101 loaded 398b0c91.../172.17.8.101 inactive
deis-builder.service loaded 398b0c91.../172.17.8.101 loaded 398b0c91.../172.17.8.101 inactive
deis-cache.service loaded 58b7d3e2.../172.17.8.100 loaded 58b7d3e2.../172.17.8.100 inactive
deis-controller.service loaded 58b7d3e2.../172.17.8.100 loaded 58b7d3e2.../172.17.8.100 inactive
deis-database-data.service loaded bf3a9b44.../172.17.8.102 loaded bf3a9b44.../172.17.8.102 inactive
deis-database.service loaded 58b7d3e2.../172.17.8.100 loaded 58b7d3e2.../172.17.8.100 inactive
deis-logger-data.service loaded 398b0c91.../172.17.8.101 loaded 398b0c91.../172.17.8.101 inactive
deis-logger.service loaded bf3a9b44.../172.17.8.102 loaded bf3a9b44.../172.17.8.102 inactive
deis-registry-data.service loaded bf3a9b44.../172.17.8.102 loaded bf3a9b44.../172.17.8.102 inactive
Error creating jobs: unable to find Unit(deis-router@1.service) or template Unit(deis-router@.service) in Registry or on filesystem
Triggered job deis-router@2.service start
Status: activating (start-pre)
pierres-mbp:deistestapp pkircher$ deis run rake routes
/bin/sh: 1: rake: not found
pierres-mbp:deistestapp pkircher$ deis run bundle exec rake routes
/bin/sh: 1: bundle: not found
pierres-mbp:deistestapp pkircher$
Pierres-MacBook-Pro:deistestapp pkircher$ deis run env
DATABASE_URL=postgres://blog:secret@172.17.8.102/blog_production
HOSTNAME=40401c53492f
HOME=/
PORT=5000
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
Pierres-MacBook-Pro:deistestapp pkircher$
Pierres-MacBook-Pro:deistestapp pkircher$ deis run "rake routes"
/bin/sh: 1: rake: not found
Pierres-MacBook-Pro:deistestapp pkircher$ deis run "bundle exec rake routes"
/bin/sh: 1: bundle: not found
Pierres-MacBook-Pro:deistestapp pkircher$
2014-08-11 21:38:31 kinky-jailbird[web.1]:
Pierres-MacBook-Pro:deistestapp pkircher$ ruby run "vendor/bundle/ruby/2.1.0/rake routes"
ruby: No such file or directory -- run (LoadError)
Pierres-MacBook-Pro:deistestapp pkircher$ deis run "vendor/bundle/ruby/2.1.0/rake routes"
/bin/sh: 1: vendor/bundle/ruby/2.1.0/rake: not found
Pierres-MacBook-Pro:deistestapp pkircher$ deis run "ls vendor/bundle/ruby/2.1.0/"
ls: cannot access vendor/bundle/ruby/2.1.0/: No such file or directory
Pierres-MacBook-Pro:deistestapp pkircher$ deis run "ls /app/vendor/bundle/ruby/2.1.0/"
bin
build_info
Pierres-MacBook-Pro:deistestapp pkircher$ deis run "rake routes --trace"
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/app/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:682:in `raw_load_rakefile'
/app/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile'
/app/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/app/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'
/app/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run'
/app/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/app/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
Pierres-MacBook-Pro:deistestapp pkircher$ deis run env
DATABASE_URL=postgres://blog:secret@172.17.8.102/blog_production
HOSTNAME=a0e4bfc059ce
HOME=/
PORT=5000
RACK_ENV=production
PATH=/app/bin:/app/vendor/bundle/bin:/app/vendor/bundle/ruby/2.1.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RAILS_ENV=production
GEM_PATH=/app/vendor/bundle/ruby/2.1.0:
PWD=/
Pierres-MacBook-Pro:deistestapp pkircher$ deis config:set HOME=/app
Creating config... done, v14
=== kinky-jailbird
No configuration
Pierres-MacBook-Pro:deistestapp pkircher$ deis run env
DATABASE_URL=postgres://blog:secret@172.17.8.102/blog_production
HOSTNAME=fc76d2557088
HOME=app
PORT=5000