Skip to content
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

set up server site building #5

Open
3 tasks
crmackay opened this issue Feb 27, 2015 · 6 comments
Open
3 tasks

set up server site building #5

crmackay opened this issue Feb 27, 2015 · 6 comments
Labels

Comments

@crmackay
Copy link
Member

  • look at github webhooks (https://developer.github.com/webhooks/)
  • install hugo binary (no dependencies) on Bib...
  • write script to receive webhook payload --> git pull --> build site --> move to proper directory
@crmackay crmackay added the todo label Feb 27, 2015
@purcaro
Copy link
Member

purcaro commented Feb 27, 2015

@purcaro
Copy link
Member

purcaro commented Feb 27, 2015

BIB only has python 2.6, and it looks like pelican doesn't like it (I get syntax errors when trying to import pelican)

setup a new user on BIB and install a virtualenv?

@crmackay
Copy link
Member Author

Are there ports available on bib (eg 8080) or do we need todo some sort of
reverse proxying via apache?

On Feb 27, 2015, at 11:41 AM, Michael Purcaro [email protected]
wrote:

looks like several python options exist:
https://github.com/razius/github-webhook-handler
http://stackoverflow.com/questions/14536992/how-do-i-receive-github-webhooks-in-python


Reply to this email directly or view it on GitHub
#5 (comment)
.

@crmackay
Copy link
Member Author

Of course it only has 2.6....

Not sure what the best way is on that server (I'm sure there's all sorts of
stuff all over the place).

We would need 2.7, pelican and it's dependencies all pointing to each
other.

Env might work but if we have to use apache for the web hook it needs to be
active for the apache user no?

Maybe just have an updated python2.7.9 interpreter somewhere, directly call
it in the main pelican script, and put the updated dependencies nearby (or
append the python path)?

--this is all very hackish because I don't know any better. Where's
docker?...

On Feb 27, 2015, at 11:45 AM, Michael Purcaro [email protected]
wrote:

BIB only has python 2.6, and it looks like pelican doesn't like it (I get
syntax errors when trying to import pelican)

setup a new user on BIB and install a virtualenv?


Reply to this email directly or view it on GitHub
#5 (comment)
.

@purcaro
Copy link
Member

purcaro commented Feb 27, 2015

We'll setup docker on bib7 for all the bootstrappers sebsite stuff, and
then setup proxy pass on bib

On Fri, Feb 27, 2015 at 12:08 PM, Chris MacKay [email protected]
wrote:

Of course it only has 2.6....

Not sure what the best way is on that server (I'm sure there's all sorts of
stuff all over the place).

We would need 2.7, pelican and it's dependencies all pointing to each
other.

Env might work but if we have to use apache for the web hook it needs to be
active for the apache user no?

Maybe just have an updated python2.7.9 interpreter somewhere, directly call
it in the main pelican script, and put the updated dependencies nearby (or
append the python path)?

--this is all very hackish because I don't know any better. Where's
docker?...

On Feb 27, 2015, at 11:45 AM, Michael Purcaro [email protected]
wrote:

BIB only has python 2.6, and it looks like pelican doesn't like it (I get
syntax errors when trying to import pelican)

setup a new user on BIB and install a virtualenv?


Reply to this email directly or view it on GitHub
<
#5 (comment)

.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@crmackay
Copy link
Member Author

ok cool.

I'll just get going on making the "content" parts of the sites ( the add-blog branch) ...

the automatically git pulling and building feature will be nice to have so we can just proofread drafts (via pull requests) commit them and they auto build and deploy, but if we can't do that right away, it's easy enough for us to just build the static site and pull it onto bib every so often...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants