Skip to content

Instantly share code, notes, and snippets.

View wesruv's full-sized avatar
🤔
Why can I have a status?

wesruv wesruv

🤔
Why can I have a status?
View GitHub Profile
# Production #
##############
#NODE_ENV = production
COUCHDB = https://api.lullabot.com:443/lullabot
COUCHDB_PREVIEW = https://api.lullabot.com:443/lullabot_preview
ELASTIC_SEARCH_HOST = https://search.lullabot.com
ELASTIC_SEARCH_INDEX = lullabot
ASSETS = https://assets.lullabot.com/
#SITE_URL = https://www.lullabot.com
#PORT = 80
request.js:117 OPTIONS http://l.lullabot.com/api-proxy ClientRequest._onFinish @ request.js:117(anonymous function) @ request.js:59EventEmitter.emit @ events.js:74finishMaybe @ _stream_writable.js:475afterWrite @ _stream_writable.js:361afterTick @ index.js:18Item.run @ browser.js:64drainQueue @ browser.js:34
:3000/our-work:1 Fetch API cannot load http://l.lullabot.com/api-proxy. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://l.lullabot.com:3000' is therefore not allowed access. The response had HTTP status code 404. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
index.js:124 Uncaught (in promise) Error: request to http://l.lullabot.com/api-proxy failed, reason: Failed to fetch(…)
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'defaultdatabase',
'username' => 'root',
'password' => '',
'host' => 'localhost',
);
$conf['theme_debug'] = true;
# Production #
##############
#NODE_ENV = production
COUCHDB = https://api.lullabot.com:443/lullabot
COUCHDB_PREVIEW = https://api.lullabot.com:443/lullabot_preview
ELASTIC_SEARCH_HOST = https://search.lullabot.com
ELASTIC_SEARCH_INDEX = lullabot
ASSETS = https://assets.lullabot.com/
#SITE_URL = https://www.lullabot.com
#PORT = 80
~/projects/lullabot.com-www (master)
$ docker-compose up
Creating lullabotcomwww_web_1
Attaching to lullabotcomwww_web_1
web_1 | npm info it worked if it ends with ok
web_1 | npm info using npm@3.8.6
web_1 | npm info using node@v5.11.1
web_1 | npm info lifecycle lullabot.com-www@0.0.0~preupdate: lullabot.com-www@0.0.0
web_1 | npm info lifecycle lullabot.com-www@0.0.0~update: lullabot.com-www@0.0.0
web_1 |
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
This file has been truncated, but you can view the full file.
diff --git a/node_modules/acorn-jsx/node_modules/acorn/.travis.yml b/node_modules/acorn-jsx/node_modules/acorn/.travis.yml
index f50c379..d9ee88b 100644
--- a/node_modules/acorn-jsx/node_modules/acorn/.travis.yml
+++ b/node_modules/acorn-jsx/node_modules/acorn/.travis.yml
@@ -1,6 +1,7 @@
language: node_js
sudo: false
node_js:
- - '0.10'
- '0.12'
~/lullabot/lullabot.com-www (1903-remove-abs-paths)
$ git st
## 1903-remove-abs-paths...origin/1903-remove-abs-paths
~/lullabot/lullabot.com-www (1903-remove-abs-paths)
$ npm i
> fsevents@1.0.14 install /home/wesruv/lullabot/lullabot.com-www/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
@wesruv
wesruv / function.js
Last active October 31, 2016 18:18
Clean CSS identifier from string
// In a perfect world, you'd never have to do this. Wish I lived in a perfect world.
/**
* Convert a string to a usable class name
* @param {string} stringToConvert String of text
* @return {string} Usable class name
*/
function convertStringToClassName(stringToConvert) {
if (typeof stringToConvert === 'string') {
return stringToConvert.trim().replace(/[\s-_]+/g, '-').replace(/[^\w-]|^-|-$/g, '').replace(/-+(?=-)/, '').toLowerCase();
~/lullabot/lullabot.com-experimental (master)
$ yarn run start:dev
yarn run v0.17.10
$ yarn run clean && yarn upgrade && yarn run build && npm-run-all --parallel reload build:server:watch build:client:watch build:styleguide:watch start:nodemon
yarn run v0.17.10
$ find dist -type f -not -name '.gitignore' -print0 | xargs -0 rm --
rm: missing operand
Try 'rm --help' for more information.
error Command failed with exit code 123.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.