Skip to content

Instantly share code, notes, and snippets.

@SalahAdDin
Created August 13, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SalahAdDin/4ad0d532f684e39e7ffc to your computer and use it in GitHub Desktop.
Save SalahAdDin/4ad0d532f684e39e7ffc to your computer and use it in GitHub Desktop.
Installing and configuring Wagtail in WebFaction Server
Deploy Wagtail in Webfaction it's very easy if you know how do it, well, now is much easier,
Wagtail have now a compiled css files, but, is you want use sass files yet, you can follow the next steps.
In web faction you need to do three aditional steps from a normal webfaction django's deploying:
Install gcc>=4.6, compile and install libsass and use compress comamand in static files.
So, now we'll see each step clearer:
1. Install gcc>= 4.6:
You can find how do this here: https://community.webfaction.com/questions/6921/compiling-gcc-46.
You need almost RAM 1GB, take a one hour at least in finish the installation.
Maybe you can use this script in side of read all page:
https://gist.githubusercontent.com/wsfulmer/776c6fea1366fe6d142b/raw/5cd87b55e17c6048e4d4914a47e79c5e68e235d2/buildgcc.sh
2. Install libsass: Use pipx.y install libsass, is very easy.
3. Use compressor commads:
It's very important, if you don't collect the static files with django-compressor, wagtail's admin won't have any style;
compressor use libsass to compile sass files, and wagtail admin's styles were sass files.
The rest is normal django deploitment.
Is you have any doug please ask us or ask in https://help.webfaction.com/ or https://community.webfaction.com/questions/.
Enjoy it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment