Skip to content

Instantly share code, notes, and snippets.

View ashleygwilliams's full-sized avatar
>o_o<

ashley williams ashleygwilliams

>o_o<
View GitHub Profile
@ashleygwilliams
ashleygwilliams / output.sh
Created May 19, 2015 01:07
bundler error on ruby-head
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
/usr/bin/ruby2.1 extconf.rb
/home/ag_dubs/.rvm/rubies/ruby-head/lib/ruby/gems/2.3.0/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:71:in `initialize': Permission denied @ rb_sysopen - /usr/bin/rdoc (Errno::EACCES)
1) Sinatra::RespondWith Helpers#respond_with templates looks for templates with name.engine for specific engines
Failure/Error: respond_app { get('/') { respond_with(*args, &block) } }
LoadError:
incompatible library version - /home/ag_dubs/.rvm/gems/ruby-head/gems/RedCloth-4.2.9/lib/redcloth_scan.so
Couldn't load redcloth_scan
(jessie)ag_dubs@localhost:~/Mozilla/publish.webmaker.org$ /usr/lib/postgresql/9.4/bin/postgres -D /usr/local/pgsql/data -c config_file=/etc/postgresql/9.4/main/postgresql.conf2015-06-08 10:43:32 EDT [5938-1] FATAL: data directory "/var/lib/postgresql/9.4/main" has group or world access
2015-06-08 10:43:32 EDT [5938-2] DETAIL: Permissions should be u=rwx (0700).
43 BaseController.prototype.update = function(req, reply) {
44 var result = this.Model.query({
45 where: {
46 id: req.params.id
47 }
48 })
49 .save(this.data(req), {
50 method: 'update',
51 patch: 'true',
52 require: 'true'
17 exports.publish = function(project) {
18 var project = Project.query({
19 where: {
20 id: project.id
21 }
22 }).fetch({
23 withRelated: ['files']
24 })
25 .then(function(record) {
26 return record;
Test script errors:
Multiple callbacks or thrown errors received in test "Before " (error): Expected 200 to equal specified value
at /Users/ag_dubs/Projects/api.webmaker.org/test/services/api/handlers/elements.js:878:40
at process._tickDomainCallback (node.js:381:11)
Multiple callbacks or thrown errors received in test "Before Project Handlers Update Thumbnail Tails" (error): Mocks not yet satisfied:
POST https://webmaker-screenshot.example.com:443/screenshotURL
POST https://webmaker-screenshot.example.com:443/screenshotURL
at /Users/ag_dubs/Projects/api.webmaker.org/test/services/api/handlers/projects.js:1510:22
1 export API_HOST=0.0.0.0
2 export PORT=2015
3 export POSTGRE_CONNECTION_STRING=postgresql://localhost:5432/webma ker
4 export REDIS_URL=redis://localhost:6379
5 export API_VERSION=dev
6 export ID_SERVER_CONNECTION_STRING=https://id.mofostaging.net
7
8 ## log level - given a chosen level, log events only at or above t hat level
9 ## debug < info < warn < error < exception < stat
10 export LOG_LEVEL=debug
{
"x": 1,
"y": 0,
"styles" : {
"background-color": "#ffffff"
}
}
exports.up = function(knex) {
knex('users')
.update({
language: users.get('language') + '-' + users.get('country')
})
.dropColumn('country')
.column('language').defaultTo('en-US')
};
exports.down = function(knex) {
'use strict';
exports.up = function(knex, Promise) {
return knex.transaction(function(trx) {
return knex('users').transacting(trx)
.update('language', knex.raw("concat(users.language, '-', user.country)"))
.then(function() {
return knex.transacting(trx).raw('ALTER TABLE "users" ALTER COLUMN "language" SET DEFAULT \'en-US\'');
})
.then(trx.commit);