Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 127.0.0.2 myapp.dev
- 127.0.0.3 api.myapp.dev
- # -w -p 3001
- require 'emeraldfw'
- ENVIRONMENT = ENV['EMERALD_ENV'].nil? ? :development : ENV['EMERALD_ENV']
- use Rack::Reloader, 0
- use Rack::ContentLength
- if (ENVIRONMENT == :production) then
- use Rack::Static, :urls => {"/" => 'index.html'}, :root => 'fe/build'
- else
- Dir.chdir('fe')
- spawn 'npm start'
- Dir.chdir('..')
- end
- run EmeraldFW::Loader.new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement