cograph icon indicating copy to clipboard operation
cograph copied to clipboard

Deploy w/ css

Open davidfurlong opened this issue 10 years ago • 12 comments

davidfurlong avatar Jun 07 '15 20:06 davidfurlong

Rad man. While this is now properly loading the .css, it doesn't seem to be fetching the .js files properly:

http://graphdocs-test.herokuapp.com/

Have you deployed it to heroku to test somewhere @davidfurlong ?

willzeng avatar Jun 16 '15 18:06 willzeng

Glad to see this moving :)

harlantwood avatar Jun 16 '15 20:06 harlantwood

@davidfurlong: when I tried a test deploy, it errored out looking for colors.less:

fontawesome#4.2.0 app/assets/libs/fontawesome
The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.
FileError: 'colors.less' wasn't found. Tried - /home/ubuntu/cograph/app/assets/stylesheets/colors.less,/home/ubuntu/cograph/app/assets/stylesheets/colors.less,colors.less in /home/ubuntu/cograph/app/assets/stylesheets/graph.less on line 4, column 1:
3 @import "font";
4 @import "colors";
5 

-- from https://circleci.com/gh/harlantwood/cograph/43

harlantwood avatar Jun 17 '15 20:06 harlantwood

Ah I removed it, because it was unused but I guess its still referenced.. fixing

davidfurlong avatar Jun 17 '15 20:06 davidfurlong

@harlantwood Its fixed

davidfurlong avatar Jun 17 '15 20:06 davidfurlong

Nice. Next error is NameError: variable @black is undefined in /Users/harlan/HKB/code/cograph/app/assets/stylesheets/graph.less on line 168, column 9

@davidfurlong you should be able to repro these locally by running bin/compile.

harlantwood avatar Jun 17 '15 21:06 harlantwood

Nice. Next error is NameError: variable @black is undefined in /Users/harlan/HKB/code/cograph/app/assets/stylesheets/graph.less on line 168, column 9

@davidfurlong you should be able to repro these locally by running bin/compile.

Alright I guess colors.less was used here.. Ill run through these errors locally

davidfurlong avatar Jun 17 '15 21:06 davidfurlong

@harlantwood It successfully compiled locally for me now, apologies for the silly errors

davidfurlong avatar Jun 17 '15 21:06 davidfurlong

NP!

Locally and on CI I now get:

Error: Error: ENOENT, no such file or directory '[some/local/path]/cograph/app/assets/stylesheets/main-graph.css'

Does your bin/compile succeed locally @davidfurlong?

harlantwood avatar Jun 17 '15 21:06 harlantwood

@harlantwood Ah It does, but it seems the .gitignore on the .css files means I didn't commit them. Doing so now

davidfurlong avatar Jun 17 '15 22:06 davidfurlong

LGTM. Deploys successfully to my test heroku app. @willzeng same?

harlantwood avatar Jun 17 '15 22:06 harlantwood

This deploys successfully for me, but it still throws the same errors when looking for the .js. Check the console at http://graphdocs-test.herokuapp.com/

willzeng avatar Jun 24 '15 11:06 willzeng