Skip to content

get Gemfile in shape for 498 #499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2016
Merged

get Gemfile in shape for 498 #499

merged 3 commits into from
Nov 7, 2016

Conversation

jarrodu
Copy link
Member

@jarrodu jarrodu commented Oct 22, 2016

First shot at #498. It seems to build just fine.

I would be very interested in hearing about how the site is actually built and put on the server.

I think it would be just fine to build before it hits the server and just push the _site directory. This is how I push my site to S3. Then we would not need to worry about what is and is not installed on the server.

@jarrodu
Copy link
Member Author

jarrodu commented Oct 22, 2016

lol. Now to take a look at the Travis file. 😢

@jarrodu
Copy link
Member Author

jarrodu commented Oct 22, 2016

Any hint on what version of Ruby to specify in the Travis file? I am fine with what we have in this PR but there maybe a better option.

@SethTisue
Copy link
Member

review by @fsalvi?

@SethTisue
Copy link
Member

SethTisue commented Oct 22, 2016

I would be very interested in hearing about how the site is actually built and put on the server.

I don't know everything, but I do know there's a Jenkins job: https://scala-webapps.epfl.ch/jenkins/job/production_scala-lang.org-builder/

the script in the job config is:

#!/bin/bash -xe
echo "Hello."
echo "Workspace is: $WORKSPACE"
echo "Gems are in : $GEM_HOME"
echo "Path is : $PATH"
PATH="/data/scalaw3/local/gems/bin:/data/scalaw3/local/bin:$PATH"
export GEM_HOME="/data/scalaw3/local/gems"
/data/scalaw3/local/gems/bin/jekyll build
#--base-url=http://tresor-srv04.epfl.ch:8888/ 
rsync -avx "$WORKSPACE"/_site/ /data/scalaw3/local/htdocs --delete-after --exclude=/config.yml --exclude=/README.md --exclude=/WebDNA --exclude=/old --exclude=/.htaccess --exclude=/favicon.ico --exclude=/files --exclude=/404.html --exclude=/autoindexstyle.css --exclude=/autoindexheader.shtml

@jarrodu
Copy link
Member Author

jarrodu commented Oct 23, 2016

After looking at the job config it seems like it would be pretty easy to add Bundler to the Jenkins job.

@heathermiller
Copy link
Member

Pinging @fsalvi, can you get bundler set up so we can use it in the build?

@SethTisue
Copy link
Member

can you get bundler set up so we can use it in the build

omg that would be fantastic

@fsalvi
Copy link
Contributor

fsalvi commented Oct 25, 2016

Sorry, I'm on holidays this week far away with limited internet access. I'm not sure I will be able to look at it before Monday. I'll try to do it asap.

@SethTisue
Copy link
Member

@fsalvi it can wait! enjoy

@fsalvi
Copy link
Contributor

fsalvi commented Oct 31, 2016

Ok, bundler is installed.

*** LOCAL GEMS ***
afm (0.2.2)
Ascii85 (1.0.2)
bigdecimal (1.2.8)
blankslate (3.1.3)
bundler (1.13.6)
classifier-reborn (2.0.4)
coderay (1.1.1)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
colorator (0.1)
did_you_mean (1.0.0)
execjs (2.6.0)
fast-stemmer (1.0.2)
ffi (1.9.10)
hashery (2.1.1)
io-console (0.4.5)
jekyll (3.1.6)
jekyll-coffeescript (1.0.1)
jekyll-feed (0.3.1)
jekyll-gist (1.1.0)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.3.0)
jekyll-watch (1.3.0)
json (1.8.3)
kramdown (1.11.1, 1.10.0)
liquid (3.0.6)
listen (3.0.3)
mercenary (0.3.5)
mime-types (2.6.1)
minitest (5.8.4)
multi_json (1.11.2)
mysql (2.9.1)
net-telnet (0.1.1)
oj (2.12.10)
parslet (1.7.1)
pdf-core (0.5.1)
pdf-reader (1.4.0)
pg (0.18.4)
posix-spawn (0.3.11)
power_assert (0.2.7)
prawn (2.0.2)
prawn-table (0.2.1)
psych (2.0.17)
pygments.rb (0.6.3)
rake (10.5.0)
rb-inotify (0.9.7)
rdiscount (2.1.8)
rdoc (4.2.1)
redcarpet (3.3.4)
rouge (1.10.1)
ruby-rc4 (0.1.5)
safe_yaml (1.0.4)
sass (3.4.21)
sequel (4.32.0)
sequel_pg (1.6.14)
stringex (2.5.2)
test-unit (3.1.7)
toml (0.1.2)
ttfunk (1.4.0)
yajl-ruby (1.2.0)

@jarrodu
Copy link
Member Author

jarrodu commented Nov 5, 2016

Great it looks like things got cleaned up. Thanks for all the help. 👍

@jarrodu jarrodu closed this Nov 5, 2016
@jarrodu jarrodu deleted the issue-498 branch November 5, 2016 17:11
@jarrodu jarrodu restored the issue-498 branch November 7, 2016 09:56
@jarrodu
Copy link
Member Author

jarrodu commented Nov 7, 2016

The small change in the Travis file in this PR should fix Travis builds. It is currently failing for other more resent PR because Travis is using an older version on Ruby. #507 #510

@jarrodu jarrodu reopened this Nov 7, 2016
@SethTisue SethTisue merged commit 982c581 into scala:master Nov 7, 2016
@SethTisue
Copy link
Member

thank you Fabien and Jarrod. really super to see this infrastructure type stuff gradually getting straightened out and modernized

@jarrodu jarrodu deleted the issue-498 branch November 8, 2016 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants