mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
update readme instructions
This commit is contained in:
parent
18e54e4617
commit
d8cd9a39ed
32
README.rdoc
32
README.rdoc
@ -44,43 +44,41 @@ Install rvm
|
||||
|
||||
source ~/.rvm/scripts/rvm
|
||||
|
||||
Install ruby 2.1.2
|
||||
Install ruby 2.3.1
|
||||
|
||||
rvm install ruby 2.1.2
|
||||
rvm install ruby 2.3.1
|
||||
|
||||
rvm use 2.1.2
|
||||
rvm use 2.3.1
|
||||
|
||||
Install rails 4.0.1
|
||||
Install rails 4.2.5
|
||||
|
||||
gem install rails -v 4.0.1
|
||||
gem install rails -v 4.2.5
|
||||
|
||||
Install necessary libraries
|
||||
|
||||
sudo apt-get install imagemagick libmagickwand-dev
|
||||
|
||||
Clone the code
|
||||
|
||||
git clone git@github.com:indentlabs/notebook.git
|
||||
|
||||
Install gems
|
||||
|
||||
bundle install
|
||||
|
||||
Create database
|
||||
|
||||
rake db:create
|
||||
|
||||
Run initial database migrations
|
||||
|
||||
rake db:migrate
|
||||
|
||||
Optional: To enable the uploading and editing of images (used in Locations management, etc), you will need to create a file named set_aws_credentials.rb with the following content:
|
||||
|
||||
[[ $_ != $0 ]] && echo "Ready to run your server!" || echo "This script needs to be sourced!"
|
||||
|
||||
export AWS_BUCKET="<your bucket>"
|
||||
export AWS_ACCESS_KEY_ID="<your access key id>"
|
||||
export AWS_SECRET_ACCESS_KEY="<your secret access key>"
|
||||
|
||||
And then set your AWS credentials with
|
||||
|
||||
source set_aws_credentials.rb
|
||||
|
||||
Finally, run the server with
|
||||
|
||||
rails server
|
||||
|
||||
You should now see a copy of the site running locally at http://localhost:3000/!
|
||||
|
||||
== Deployment to notebook.ai
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user