Clean up ruby install

This commit is contained in:
datalets 2019-08-09 15:19:50 +02:00
parent 8f2ac884a9
commit a7be29410b
2 changed files with 8 additions and 11 deletions

View File

@ -28,6 +28,8 @@ The first command (`..install -g..`) may require `sudo` if you installed node.js
If you are only working on the frontend, you can start a local webserver and work on frontend assets without the backend setup described below. There is a `grunt browser-sync` setup for working with frontend assets.
(In a Vagrant shell, use the alias `watch`)
**Backend setup**
If not using Vagrant: after installing Python 3, from the project folder, deploy system packages and create a virtual environment as detailed (for Ubuntu users) below:

View File

@ -42,18 +42,10 @@ cat << EOF >> /home/vagrant/.bashrc
export PYTHONPATH=$PROJECT_DIR
export DJANGO_SETTINGS_MODULE=$PROJECT_NAME.settings.dev
alias dj="django-admin.py"
alias djrun="dj runserver 0.0.0.0:8000"
source $VIRTUALENV_DIR/bin/activate
export PS1="[$PROJECT_NAME \W]\\$ "
cd $PROJECT_DIR
# Install Ruby SASS
apt-get update
apt-get install ruby-sass
# Install node.js
curl https://raw.githubusercontent.com/isaacs/nave/master/nave.sh > nave.sh
chmod a+x nave.sh
@ -64,9 +56,12 @@ su - vagrant -c "/home/vagrant/nave.sh usemain stable"
su - vagrant -c "/home/vagrant/nave.sh use stable"
# Install Frontend dependencies
su - vagrant -c "npm install -g bower grunt-cli"
su - vagrant -c "npm install -g yarn grunt-cli"
su - vagrant -c "npm install --no-bin-links"
su - vagrant -c "bower install"
alias bower="bower install"
su - vagrant -c "yarn install"
alias watch="grunt watch"
alias dj="django-admin.py"
alias djrun="dj runserver 0.0.0.0:8000"
EOF